Application Development and Automation 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: 
Read only

Problem with deep structure in LOOP

Former Member
0 Likes
1,013

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.

4 REPLIES 4
Read only

paul_bakker2
Active Contributor
0 Likes
963

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

Read only

0 Likes
963

Read only

former_member202818
Active Contributor
0 Likes
963

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

Read only

0 Likes
963

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