on 10-22-2008 6:54 AM
Hi,
Iam doing File to RFC(BAPI) Asynchronous.
Iam using the BAPI BAPI_SALESORDER_CREATEFROMDAT2
Te Fields iam passing for sale order creation are
DocType : OR
Material : 723300
Quantity : 10
Partner Role : SP (sold to party)
Partner Number : 100006
With these fields Iam able to create the order in R/3. When I call the same BAPI from XI and pass the same values Iam getting an error saying OR is not defined. Then I had to debug the BAPI. The fields DocType, Partner Role have conversion routines. If I pass OR they will convert them into TA like wise SP would be converted to AG. This conversion is taking place when i execute BAPi in r/3 directly.
But when I execute it from XI Iam getting the error.
If I pass TA instead of OR , AG instead of SP it works for me.
Why BAPI is not able convert them when i call it from XI.
What can I do in this scenario. I cannot all the time search for the routine and pass that value. Also my input file would be using OR, SP and all.
Please suggest me what I need to do to overcome this
Thank you
Radhika.
resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Either u have to go with the proxy scenario wer u can convert the data which i coming from the XI or u can make ur Bapi into Z and in that just modify the code accordingly and import the new zbapi IR and do the mapping.
Try this this have to work
Regards,
Phani
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Check the Data Type of the element when IDOC is imported to the XI
Use the same data type for your Outbound Interface.
Also keep external break point and check what values r passing to the IDOC
rgds
srini
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is case sensitive, Check whether you are giving it properly..
Regards,
Nithiyanandam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Radhika,
Yes....BAPI can execute with any values(test mode).But if you are passing values to the BAPI from XI or any external system, have to pass the conversion routine values ie TA or AG.Otherwise you get errors as u said.
To overcome this problem,You can use the Inbound proxy and bu using conversion exits in the proxy ,can solve the problem and we can pass the actual values like OR,SP etc.
Regards,
Sekhar D
Hi Radhika,
Just Check What input XI is Giving to the BAPI just Before calling The RFC.
Is Doctype is the one u are expecting as a input.
thanks
Sunil Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.