Skip to Content
author's profile photo Former Member
Former Member

File to RFC using BPM

Dear All,

We tried a scenario as mentioned in the subject line. Here we used BAPI_PO_CREATE function module. All the configuration part ismok. When executed in the return parameter we are getting error message as Purchase Org not found. However when executed the same in SAP server with this data the Purchase order is getting created. I hard coaded all the Header data , this time I got a strange message saying Vendor data is not maintained in Vendor MAster.

Could anybody guide me how to go ahead.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 01:10 PM

    Hi ,

    There is a problem with the data which you are sending to SAP system.Send the appropriate data.Assign 0's also to the respective fields.Suppose If the filed length is 6.Then send the field like 001234.Try this way..

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 01:12 PM

    Hi Venkatesh,

    just for check again - ask MM persons, what data is required to successfully create a PO in your R/3 system.....use that data in SAP R/3 by executing BAPI - see if PO is created.....

    then from XI, check if you are accessing the same R/3 system and client number.. then execute RFC call and hardcode your PO data for BAPI execution....if there is any error now, then please tell....

    Thanks,

    Rajeev Gupta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 26, 2007 at 01:32 PM

    HI,

    Please see the below link..

    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

    Regards

    Chilla

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 09:17 AM

    Dear All thanks for your reply,

    As you suggested I did but still I am getting the same problem. I am here by attaching the sample data that I am passing

    <?xml version="1.0" encoding="UTF-8"?>

    <ns0:po_request_MT xmlns:ns0="urn:tbitbv40bapibpm">

    <poheader_DT>

    <doc_date>19990430</doc_date>

    <doc_type>NB</doc_type>

    <comp_code>1000</comp_code>

    <pur_org>3000</pur_org>

    <pur_grp>100</pur_grp>

    <vendor>0000003000</vendor>

    </poheader_DT>

    <poitem_DT>

    <pur_mat>RFID_PALLET</pur_mat>

    <plant>3000</plant>

    <net_price>10.0000</net_price>

    </poitem_DT>

    <poshdl_DT>

    <delv_date>20041122</delv_date>

    <quantity>10.000</quantity>

    </poshdl_DT>

    </ns0:po_request_MT>

    Please note that these data I got after debugging the BAPI_POCREATE ( in otherwords it is the run time data in SAP).

    I got the following error

    <?xml version="1.0" encoding="UTF-8"?>

    <ns1:poajit_res_MT xmlns:ns1="urn:ajitbpm">

    <response_DT>

    <po_no></po_no>

    </response_DT>

    <poajit_return>

    <code>ME083</code>

    <type>E</type>

    <message>Enter Purchasing Org.</message>

    </poajit_return>

    </ns1:poajit_res_MT>

    Can you guess from this and give you valuable suggestion.

    Regards

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 10:05 AM

    Dear All ,

    Thanks for your reply.

    PO number will be generated by the BAPI and it will return . Hence I can not send the PO number in XML file.

    Secondly Company code length is 4 characters only.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 11:04 AM

    Dear All,

    Thanks for your reply.

    In the RFC receiver adapter I have checked all the options like

    1. Advanced mode

    2. Send Confirm Transaction

    3. Commit Handling for single BAPI calls

    4. BAPI advanced mode.

    Refards

    VEnkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 11:31 AM

    Dear All,

    I unchecked the following options

    1.Send Confirm Transaction

    2. BAPI advanced mode.

    Still I am getting the error.

    The first XML what I have pasted in my previous mail is the testing data, ad the second XML file is the response I got from the BAPI ( technically it is the Return table of BAPI). Here I do not have any control over this as this is given by SAP system.

    Regards

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2007 at 11:41 AM

    Dear All,

    No it is not like that. If BAPI is posted successfully then only it will create Purchase order number. If due to some reasons ( like ours) it does not post, it will capture that particular error and will sent back . That is the reason why all BAPIs will have return parameter.

    Regards

    Venkatesh

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.