How to run any XML Port

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

Comments

  • ashishguptaashishgupta 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.
  • krikikriki Member, Moderator Posts: 9,118
    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!


  • ashishguptaashishgupta 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.konirpavel.konir Member Posts: 7
    thank you ](*,)
Sign In or Register to comment.