‎2008 Dec 09 7:50 PM
Hello,
I am using following code:
DATA: it_rbkp TYPE TABLE OF RBKP.
DATA: wa_rbkp like line of it_rbkp.
DATA: v_amt LIKE RBKP-RMWWR.
IF not WA_RBKP is initial.
perform main using wa_rbkp-belnr
wa_rbkp-gjahr.
ENDIF.
FORM main USING P_WA_RBKP_BELNR
P_WA_RBKP_GJAHR.
perform action using wa_rbkp.
ENDFORM. " main
FORM action using wa_rbkp.
v_amt = wa_rbkp-rmwwr.
endform.Now the statement v_amt = wa_rbkp-rmwwr is causing a problem saying that data object wa_rbkp has no structure.
Please help.
Regards,
Rajes.
Edited by: Rajesh Thomas on Dec 9, 2008 8:50 PM
‎2008 Dec 09 8:03 PM
You need to explicitly TYPE the parameter.
Like:
FORM action using wa_rbkp TYPE RBKP. " <<
v_amt = wa_rbkp-rmwwr.
endform.
Regards,
Naimesh Patel
‎2008 Dec 09 8:05 PM
Hello,,
you can do like this:
FORM action USING wa_rbkp STRUCTURE rbkp.
v_amt = wa_rbkp-rmwwr.
ENDFORM. "actionBye,
Andrew83.
‎2008 Dec 09 8:27 PM
Hi Rajesh
Here is the solution for your error with corrected code.
DATA: it_rbkp TYPE TABLE OF RBKP.
DATA: wa_rbkp like line of it_rbkp.
DATA: v_amt LIKE RBKP-RMWWR.
IF not WA_RBKP is initial.
perform main using wa_rbkp-belnr
wa_rbkp-gjahr.
ENDIF.
FORM main USING P_WA_RBKP_BELNR
P_WA_RBKP_GJAHR.
perform action using wa_rbkp-rmwwr.
ENDFORM. " main
FORM action using p_rmwwr TYPE RMWWR.
v_amt = p_rmwwr.
endform.
Let me know if you further questions.
Best Regards,
Krishna
<<text removed>>
Edited by: Matt on Dec 10, 2008 9:16 AM - Do not ask for or offer points, as per the forum rules.