Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

stock transfer invoice display print issue

Former Member
0 Kudos

Dear Exports,

Here there is issue regarding stock transfer invoice print preview. That is we cancelled one document in j1is, we also got a message cancelled. but now with the same document number we maintained another values in j1is, that will be displayed in stock transfer invoice print preview. But as of now am getting the cancelled document values in print preview of stock transfer invoice. the newly updated document for the cancelled document was not displaying. So now am bit confused with the report program what to change. below down is the small code from the whole program. Please make the changes down with the code. for your reference, it_dis has all the values.

LOOP AT ITAB.

IF WK_CHAP IS INITIAL.

WK_CHAP = ITAB-CHAPID.

ENDIF.

CLEAR W_KBETR.

VAR = VAR + 1.

WA_DIS-SINO = VAR.

MOVE : ITAB-MAKTX TO WA_DIS-MAKTX,

ITAB-MENGE TO WA_DIS-QUAN,

ITAB-MEINS TO WA_DIS-UOM.

MOVE ITAB-EXBAS TO WA_DIS-GROSS.

W_KBETR = ITAB-EXBAS / ITAB-MENGE.

CLEAR : W_MAKTX, W_DUMMY.

W_MAKTX = WA_DIS-MAKTX.

SPLIT W_MAKTX AT '(' INTO W_MAKTX W_DUMMY.

WA_DIS-MAKTX = W_MAKTX.

WRITE W_KBETR CURRENCY J_1IEXCHDR-EXCUR TO WA_DIS-UNPRI.

W_HEAD-TOTAL = W_HEAD-TOTAL + ITAB-EXBAS.

WK_TOT = WA_DIS-GROSS + WK_TOT.

TOT_QUAN = WA_DIS-QUAN + TOT_QUAN.

APPEND WA_DIS TO IT_DIS.

CLEAR WA_DIS.**************************************used this statement to clear but am getting the canceled document values

regards,

ramesh

1 REPLY 1

nabheetscn
Active Contributor
0 Kudos

First of all where is the code that you have put in to determine cancelled document etc that needs to be there in order to skip it and code to get new document both

Nabheet