cancel
Showing results for 
Search instead for 
Did you mean: 

Update Zterm in sap script for PO

Former Member
0 Kudos

Hy,

how update Zterm explanation in sap script for Purchase order?

Accepted Solutions (0)

Answers (1)

Answers (1)

rwarri1
Active Contributor
0 Kudos

Hi,

The print program will pass the information to Sapscript. Code is like this

CALL FUNCTION 'FI_PRINT_ZTERM'

EXPORTING

I_ZTERM = EKKO-ZTERM

I_LANGU = EKKO-SPRAS

I_XT052U = 'X'

I_T052 = T052

TABLES

T_ZTEXT = ZBTXT

EXCEPTIONS

ZTERM_NOT_FOUND = 01.

READ TABLE ZBTXT INDEX 1.

IF SY-SUBRC EQ 0.

PEKKO-ZBTXT = ZBTXT-LINE.

DELETE ZBTXT INDEX 1.

The sapscript code will be as fillows

&'Terms of payment: 'PEKKO-ZBTXT&

Cheers !