Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Long fields used in BAPI

Former Member
0 Likes
549

Hi.

I have to create a custom BAPI which has one import field as string type. because BAPI doesnt support string data type, I have changed it to char2048 which is giving warning. Ignoring it, when I try releasing it in transaction SWO1, its throwing an error telling "More than 255 characters is not allowed for a field in BAPI." I am getting XML data in that field (coming from Datastage). One thing that we can do is we can split the data in the format of 255 chars long in datastage but I cant change the value in datastage tool but I can play with the data on my system working on ABAP. Can anyone please help me out with the solution for it. So, instead of splitting the data in datastage/middleware, can we do somthing in BAPI that it accepts 2000 chars in one field.

(High Priority task).

Regards'

Sitesh.

3 REPLIES 3
Read only

matt
Active Contributor
0 Likes
438

Please read the Rules of Engagement for these forums. The fact that something is high priority for you, does not make it high priority for us, the volunteer contributors to the forums. This form of words "high priority", or similiar is not permitted.

matt

Read only

Former Member
0 Likes
438

Hi,

You can pass the data in tables parameter as SAP uses to pass the cutomer field in EXTENSIONIN tables parameter for most of the BAPIs. The structure used is BAPIPAREX.

Regards,

Ankur Parab

Read only

Sandra_Rossi
Active Contributor
0 Likes
438

Is that really needed to create a BAPI ? Can't you just create an RFC-enabled function module or web service instead, so that to receive a string ? (if BAPI is needed, you may still be called by your function module or web service)