Logic rel to HKONTH
Below there is a requirement to get the GL Account via the Function Module and the standard form (Adobe Form) J_3RM4_PDF AND the Driver Prg is J_3RM4_PDF.
Field Description is : Corresponding Account .
Functionality : Get Cuurent Account via standard functionality of J_3RM4_PDF and print alternative account using logic.
Logic : First get Account HKONTH via 'FI_STANDARD_DETERMINE' Function Module. And here in this FM what have to pass
to get HKNOTH(G/L Account).
select SKB1-ALTKT(Alternative Acctno) BUKRS eq BUKRS and saknr EQ HKONTH.
Can any one tell me how to do the requirement?and what to pass the fields for the Function module to get the GL Account and in Select query syntactially to write the query.