Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

help to change this code to daynmic

hi,

i have this code and insted to write it many time there is a better way to write it?

the change is : name & value.

CALL FUNCTION 'TEXT_SETVALUE'

EXPORTING

name = '&vendorname&'

value = is_invoice_table-vendor_name

value_length = 0

replace_symbols = ' '.

CALL FUNCTION 'TEXT_SETVALUE'

EXPORTING

name = '&invoicedate&' "

value = is_invoice_table-invoice_date

value_length = 0

replace_symbols = ' '.

CALL FUNCTION 'TEXT_SETVALUE'

EXPORTING

name = '&invoicenumber&'

value = is_invoice_table-invoice_number

value_length = 0

replace_symbols = ' '.

Tags:
Former Member
Former Member replied

Hi

You can remove VALUE(P_0072) and change to P_NAME manually.

and with in

FORM TEXT_VALUE.

CALL FUNCTION 'TEXT_SETVALUE'

EXPORTING

name = p_name

value = p_value

value_length = 0

replace_symbols = ' '.

ENDFORM.

But after every perform, you need to move the value P_NAME and P_VALUE to required variables

Regards

Madhan

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question