‎2014 Oct 16 2:32 AM
Hello,
I have a problem with deep structure, In NACE TCODE I have confifured an ouput type, this program its: Y640_MMPO_A
its to get de PO details on MEN23N
Please see my error:
Idoc its defined: l_doc TYPE meein_purchase_doc_print,
I hace the problem when I execute next loop:
LOOP AT L_DOC-XPEKPO INTO WA_EKPOO.
SubTotal = SubTotal + WA_EKPO-NETWR.
ENDLOOP.
Please help me.
‎2014 Oct 16 5:28 AM
Hi,
Your error is at line 621, but you are not showing that line of the source code in your screenshot. What does it say?
It looks like you are trying to use L_DOC as a type (not a variable).
cheers
Paul
‎2014 Oct 16 3:46 PM
‎2014 Oct 16 5:49 AM
Hi Luis,
Have used this to get PO details..
CALL FUNCTION 'ME_READ_PO_FOR_PRINTING'
EXPORTING
ix_nast = nast
ix_screen = p_ent_screen
IMPORTING
ex_retco = p_ent_retco
ex_nast = gv_nast
doc = gv_doc
CHANGING
cx_druvo = gv_druvo
cx_from_memory = gv_from_memory.
And ensure that gv_doc is declared as a global variable(In Top Include).
Regards
Sreekanth
‎2014 Oct 16 5:56 PM
Can you paste l_doc declaration.
Also , make sure l_doc is declared globally or in the routine where it is being used .
Thanks
Manik