cancel
Showing results for 
Search instead for 
Did you mean: 

Description label for text entries in PO smartform

Former Member
0 Kudos

Hello All,

I have to make modifications to standard smartfom for Purchase order.In the standard form's output if I enter Header texts(like Header text, Header note, Gurantees,Penalty for breach of contract) all the details entered are appearing in the smartform display.But my problem is that I also want to show which detailed text shows what.For example:I want to show 'Guarantees:' description label just before the 'Guarantees' text,

'Header text' just before the actual header text.In sum , I want to show short description corresponding to each text entry along with the text entry.

Eg. If I have entered in 'Gurantees' text the description 'The following conditions are to be met'.My output currently shows ''The following conditions are to be met' but I want it to look like this 'Guarantees : 'The following conditions are to be met'. Similarly for all other text types.

Pl advise how to do this.

Thanks!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hey,

I guess u would not be using the include text rather you would use the F.M READ_TEXT for displaying the long text. In such a case since you would be hard coding the text id's , text name etc

why dont you hard code the Text Header like below.

concatenate : 'GENERAL:' v_ltext into v_ltext.

Regards,

Ravi Kiran

Former Member
0 Kudos

no, i am using INCLUDE text.In this case how to proceed??

Former Member
0 Kudos

Hello,

Your going can go tough in case you use an include text.

I would suggest you to go with read_text function module

you could just complete this in minutes.

Here is the code for your refernce for read_text function Module

CALL FUNCTION 'READ_TEXT'

EXPORTING

id = 'LTXT'

language = 'EN'

name = v_tdname1

object = 'MDTXT'

TABLES

lines = it_tline1

EXCEPTIONS

id = 1

language = 2

name = 3

not_found = 4

object = 5

reference_check = 6

wrong_access_to_archive = 7

OTHERS = 8

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

clear v_text.

loop at it_tline1 INTO wa_tline1

concatenate v_text wa_tline1-tdline into v_text..

endloop.

Regards,

Ravi Kiran

Edited by: Ravi Kiran Bherthepudi on Dec 22, 2008 8:48 AM

Former Member
0 Kudos

one way of doing this is by using a switch case.

like if tdid is F01 then append "header text" to description

if F02 then "header note" like this u can do.

i am trying to find any table for this if i find i'll tell u or u can continue like this