cancel
Showing results for 
Search instead for 
Did you mean: 

PO script (Medruck)

Former Member
0 Kudos

Hi all.

I am fasing an issue in the script medruck.

I copied the medruck into zmedruck.

in the standard form the line items in the

main window are:'item no', 'material', 'discription'(as in first row).

these are printing through text element /E ITEM_LINE_1.

in the second row: '0rder qty', 'unit'.

printing through the text element:ITEM_LINE_3F.

my requirement is,to change the positions of; discription ;and ;order qty'.

so I moved the 'description ' to second row and 'order qty' to first row.

but in the print preview the 'description' is comming.

but the 'order qty' is not comming.( the corresponding fiels is--RM06P-PRMG1).

in the debugging while the value in the field RM06P-PRMG1 is deleting when controll comming to the text elementb ITEM_LINE_1.

Can any body help me to solve this issue.

thanks in advance,

Regards,

Eswar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Here is what I had to do.

In the MEDRUCKTOP include , declare a local variable of ekpo-menge.

lv_menge type BSTMG.

_________________________________________________________

In your custom form ZMedruck there is a function module for Print_PO. Within this function module EKPO is available to you.

after the following code

" PERFORM prepare_item_text TABLES doc-xekkn doc-xaend.

"Insert

clear lv_menge.

lv_menge = ekpo-menge

___________________________________________________________

Call the local variable in your script

&lv_menge& instead of RM06P-PRMG1).

thanks

Answers (1)

Answers (1)

Former Member
0 Kudos

what you can do is comment the lines in the text element which you do not want

and copy the lines that you need to the text element you need.

i have tried..it works....