Skip to Content
avatar image
Former Member

Use of BAdI /SAPSLL_CUHD_PROP for text fields

Hello together,

I have to create a data proposal for text fields on custom document header. Therefor I found thread that worked great! Problem here for us is, that the text field in the data proposal can only take 100 characters, that´s too small for our needs.

Therefor I thought to just insert a "code" including a text-id and text-name from SO10. With this I thought in a BAdI implementation of /SAPSLL_CUHD_PROP I can manipulate the data proposal, read with the "code" from data proposal my text out of SO10 and then populate that text in the target field of the custom document header.

Anyway, I get stucked with the step of implementing the BAdI. I cannot find the text fields there in the data structures? Is this correct? How are you using the BAdI /SAPSLL_CUHD_PROP, maybe you have an example?

Any other suggestions how to achieve to get default text data (~500 digits) (based on FTO) into my custom document header is appreciated!

Thanks, Tobias

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 28, 2015 at 02:38 PM

    Hello Tobias,

    you must do your programming in the Methode ITEM_DATA_PROPOSE and the text are find in the structure CS_ITEM: cs_item-iwtxt. Here you have 240 digits.

    I added some coding that we use to built up a detailed Description of Goods

    Hope that helps a little

    Regards,

    Thomas


    coding3.jpg (36.1 kB)
    coding2.jpg (261.5 kB)
    coding1.jpg (186.0 kB)
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      so, Dave thanks, that clarified that I got the BAdI right and have to take care reading DP data on my own.

      Thomas, with data proposal I already can insert some text (based on FTO etc.) in the header text of my customs document. But as there is a limitation of 100 chars for that data proposal text, I have to replace that data proposal text with a standard text (in that BAdI).

      That´s why. Maybe a really specific request, but with your infos I think I can get it run, although more coding is needed than I hoped.

      Thanks a lot, Tobias

  • Oct 28, 2015 at 03:02 PM

    Hi Tobias,

    Maybe we could help in other directions if you could explain WHY you need a long text defaulted?  It's unusual for a Customs Declaration to need any such long text, so I guess it's for a purpose unconnected with the submission of a Declaration.

    Regards,

    Dave

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Dave,

      yes, you´re right that the text is not needed for the submission of the declaration.

      Background is, that we print the EUR.1 document for some customs documents. Now, due to our business, we need additional text on the back side of this print out. This text varies for the FTO the custom declaration is created, on top the user has even to change some of the text before printing.

      That´s why I tried the followin approach:

      I created an additional print message that is connected to a smartform. In this smart form we then want to read the text from header level of the custom document.

      In the customs document, I want, based on FTO, propose the related text already in the text field, The user can change it if needed and after that execute my connected print message (on communication tab) and the text is read out of the custom document directly in the smartform.

      Any other suggestions for sure are welcome!

      Tobias