Hello Experts,
I have never worked on ABAP Objects before. Now I have been assigned to modify an existing Z-report which was developed using Classes and Methods. I have add some extra logic to an existing method.
The existing method is like this:
loop at me->i_info into l_info
CALL METHOD ME->CHANGE_BELNR
EXPORTING
ACCNT = L_INFO-SAKNR
CCODE = L_INFO-BUKRS
CHANGING
BELNR = L_INFO-BELNR.
Now I have to modify the method by adding 2 more fields (gjahr, koart) like this.
CALL METHOD ME->CHANGE_BELNR
EXPORTING
ACCNT = L_INFO-SAKNR
CCODE = L_INFO-BUKRS
gjahr = l_info-gjahr --------->
koart = l_info-koart --------->
CHANGING
BELNR = L_INFO-BELNR.
When I modify like this it is giving me an error message that "Formal parameters GJAHR and KOART do not exist". I am trying to find where "ACCNT" and "CCDOE" were declared so that I can add GJAHR and KOART to that. I did not find them in "I_INFO". Can you please let me know how can I correct this error?
Thanks much.