How to run any XML Port

pavel.konir
pavel.konir Member Posts: 7
Hallo,
I've done XML Port. But i don't know how XML Port running. Please help me.

Comments

  • ashishgupta
    ashishgupta Member Posts: 24
    u can run the XML port through codeunit only.
    you can use the follwing code

    Exportfile.CREATE('SalesInvoice.xml');
    Exportfile.CREATEOUTSTREAM(OSTREAM);
    XMLPORT.RUN(99999,OSTREAM);
    EXPORTFILE.CLOSE;

    Where ExportFile ia a file variable and OStream is an outstream variable.
    99999 is the object id of XMLport that u want to run.
    SalesInvoice will be the name of XML file.
  • kriki
    kriki Member, Moderator Posts: 9,121
    u can run the XML port through codeunit only.
    You can also run an XML-port through another object.
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


  • ashishgupta
    ashishgupta Member Posts: 24
    Sorry,
    Mistakenly I have written that.
    Actually u can run the XML port through codeunits or other objects but can not be run directly.
  • pavel.konir
    pavel.konir Member Posts: 7
    thank you ](*,)