Application Development 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: 

Long text from Bom(latest version) needed?

Former Member
0 Kudos

hi abap experts,

I have been meddling with a smartform for weeks, and recently i resolved(with help from scn) but now i have found another mistake in the existing report
the report, the long text which gets printed in the smartform is taken from stpo table, the long text that is maintained in cs01 for a material is also eventually stored in stpo-potx1,potx2...the report takes it from there, but the functional people have many versions of long text maintained for the same material, and while the report fetches the first long text available from the stpo table, i couldn't think of any idea to resolve this problem,(when i opened cs03 and displayed the the concerned line item ...it had 4 long texts maintained for it, while the report fetches the first one, the functional people wan the last one they maintained for it)

in the report:

           wa_final-text1 = wa_stpo-potx1.

           wa_final-text2 = wa_stpo-potx2.

is there any simple way to achieve printing only the required long text by giving condition in smartform ? or can i change something in the report?

Thanks and regards,
Vivian.

5 REPLIES 5

Former Member
0 Kudos

Hello Vivian,

  You can use FM read_text to read long text or FM 'CSAP_MAT_BOM_READ'.

Please check link https://scn.sap.com/thread/917358

Hope this will help.

regards,

Deepti

Former Member
0 Kudos

Hi Vivian,

You need to use the function module READ_TEXT to read the long text any object. If the requirement is to sync the report and the smartform, it is better to use the function module READ_TEXT in the report and in the smartform.

Cheers

~Niranjan

Former Member
0 Kudos

If someone could say how to get the long text that is stored in cor3, that would be helpful, the f1 help doesn't give anything usefull, or am i overlooking anything?, i have tried read_text is already used in my smartform.
thanks in advance.

0 Kudos

For Order header text you should use READ_TEXT

Text Name      (Concantenate sy-mandt and order number with leading zeros)

Language        EN

Text ID         KOPF Order header text

Text Object     AUFK       Order text

0 Kudos

My requirement is similar to this person's
http://scn.sap.com/thread/1919861

But as they say I can't go to every Alternate Bom and set it as inactive (don't have choice but it's the requirement given to me).
Is there any way to code it in the program so that it fetches only the latest alternate Bom? if it's not possible can anyone explain why?

Thanks and regards,

Vivi