04-03-2013 9:04 AM
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.
04-03-2013 9:34 AM
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
04-03-2013 9:34 AM
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
04-03-2013 2:33 PM
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.
04-04-2013 9:44 AM
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
04-05-2013 8:49 AM
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