Skip to Content
author's profile photo Former Member
Former Member

stock transfer invoice display print issue

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 09, 2011 at 10:49 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.