cancel
Showing results for 
Search instead for 
Did you mean: 

File to RFC using BPM

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Venkates,

did you see my above posting....

Thanks,

Rajeev Gupta

Former Member
0 Kudos

hi Venkat,

<doc_date>19990430</doc_date>

this is an invalid date please other date such as 20060403 .

your dateformat in BAPI is DD.MM.YYYY format when you give this 19990430 then is giving wrong date

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

venkat any updates on your issuse.

Former Member
0 Kudos

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

Former Member
0 Kudos

if you get response from BAPI means then the BAPI is posted sucesfully.

Former Member
0 Kudos

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

Former Member
0 Kudos

can you uncheck 2. Send Confirm Transaction

and 4. BAPI advanced mode.

I also i dont vendor details in the secondXML file

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

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.

Former Member
0 Kudos

Venkat,

i dont see vendor details in second XML such as <vendor>0000003000</vendor>

number etc.

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

Hi ,

Are you using "Commit handling for Single BAPI calls (see advanced mode)option" in your Reciever RFC Adapter??

Regards,

Former Member
0 Kudos

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

Former Member
0 Kudos

frist thing i dont see same data which you passed in second XML . in Second XML their is no PO number if their No PO Number then your BAPI will fail. can pastethe XML that isreceived by R/3 in SXMB_MONI

Regards

Sreeram.G.Reddy

Former Member
0 Kudos

Hi ,

<i><comp_code>1000</comp_code></i>

comp_code max length is may be 6.

Try this way.....

<comp_code>001000</comp_code>

Regards ,

Former Member
0 Kudos

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

Former Member
0 Kudos

hi Venkatesh,

i think in PO Item u have to give the Material values as well. the material field is empty, try by passing material value and let me know what is the error.

thanks,

Azias basha

Former Member
0 Kudos

HI,

Please see the below link..

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

Regards

Chilla

Former Member
0 Kudos

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

Former Member
0 Kudos

Dear Rajeev,

I did the same thing that you have mentioned. Initially we executed the BAPI from SAP server by giving the data, and the BAPI created the Purchase order. Then we used the same data in our XI scenario at this time I am getting this problem.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi ,

As I explained before,Give the proper data which you have tried in the SAP system.Just prefix 0's to the filed depends on the fileld length.

Regards,

Former Member
0 Kudos

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,