cancel
Showing results for 
Search instead for 
Did you mean: 

Sales Text

0 Kudos

Hi All,

I am working on Invoice Smartform ZLB_BIL_INVOICE.

In output i want to display sales text which is in MM02.For that i use include text in smartform in which i want to define

TEXT NAME Material sales organisation distribution Ch

TEXT OBJECT MVKE

TEXT ID 0001

LANGUAGE EN

But my problem is how to pass fields in TEXT NAME which is combination of these three Material sales organisation and distribution ch?

there is any field in ZLB_BIL_INVOICE which i can use directly?

Thank you

Vijay

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi ,



data : lv_name like THEAD-TDNAME .
      
CONCATENATE wa_item-matnr wa_item-vkorg wa_item-vtweg into lv_name .

pass lv_name to NAME in read_text function module to get the text

hope it helps ....

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Suhas,

Since we are doing a custom smartform we need to define what we need in the smartform

or we need to find the field being passed to the standard text ( text name) by debugging on actions such as change/create and see if it can be made available in smartform

Otherwise...We need to declare a variable of character type to be passed...

concatenate in the right order and pass it to the include text

To understand how exactly the variable is passed go to se37 and pass it to READ_TEXT to see if the retrieval is successful

eg: consider PO Text & PO Item

declare : wf_char in the global variables

po number :000111

po item :is 0010

we need 0001110010

....means we need to get po number in one variable with leading zeroes/po item in another with leading zeroes(use CONVERSION_EXIT_ALPHA_INPUT to add leading zeroes for the non-character variable) and move each into a character variable and finally concatenate it to the text name

Before calling the include text , write program lines of code and fill the wf_char as required

Finally pass the TEXT NAME as &WF_CHAR&

and give option - not to give error messages on fail

Hope it helps,Pls check and revert

Regards

Byju

Former Member
0 Kudos

HI,

you can use the variable name and populate the varable name in the smartform.