Skip to Content
author's profile photo Former Member
Former Member

Regarding Long text

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 04: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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 24, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.