07-24-2008 5:45 AM
Hi All,
I have a requirement in AC03 transaction to upload data.
I am using BAPI_SERVICE_CREATE to upload data and i can achieve that.
My problem is that there is a field in the TCODE for longtext so i want to upload longtext also for that using this BAPI, what i can see is that in the BAPI the length of the line is given 132 character, and my file have much more than that to load , but it takes upto 132 and stores the data.
Now i want to load more that 132 characters from the BAPI , how can i achieve this.
Regards,
Mona
07-24-2008 5:56 AM
Hi,
I think we can use other BAPI FM to read the Longtext from that BAPI.
Try using these -
BAPI_CHARACT_GETLONGTEXT - BAPI for Characteristics: Read Long Text for Characteristic or Value
We can find other BAPI in SE37 - longtext as search string
Thanks & Regards,
Chandralekha.
07-24-2008 5:56 AM
Hi,
if you want to add text which is gretaer than 132 charcters, then ypu need to change the ref type to STRING in the BAPI, and as the bapi is the standrd type, cretae a copy of the standrd bapi and just handle the code with type string.
Revert back if any issues,
Regards,
Naveen
07-24-2008 6:27 AM
Hi Naveen,
But in the bapi strucure if i create a Zcopy , acc to BAPi rules it does not allow me to user type string asking for flat structure type.
Regards
Mona
04-21-2011 6:17 AM
Hi Naveen,
Thanks for your reply.
I can create the Zstructure of the bapi . But bapi in - turn uses other standard FM to create notifications .And longtext is passed as one of the parameter to these FM. For eg: Bapi calls the FM :
call function 'IWON_NOTIFICATION_CREATE'
exporting
tables
longtexts = longtexts
So will i have to create Z FM as well. ? Will i have to create Z objects wherever longtext is passed or used.?
Is there any other way to enhance .
Thanks
Mittal.