on 02-26-2007 1:07 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
Your error is :Enter Purchasing Org
So check <pur_org> node is mapped to the RFC msg type Purchasing Org field in IR or not.....if not, then map this Purchasing Org field...see in msg mapping test tab, whether this Purchasing Org field is filled for RFC or not....
Thanks,
Rajeev Gupta
Message was edited by:
RAJEEV GUPTA
HI,
Please see the below link..
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards
Chilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkatesh,
just check - from XI, are you accessing the same R/3 system and same client ..... if you are accssing the same R/3 client system, then tell what error you are getting because this is not possible that your PO gets created in r/3 and from XI - with same data you get error "Vendor not in vendor master"........
give same data and test again.........
if you get error, tell what error you get.......
Thanks,
Rajeev Gupta
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,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.