2006 Jan 23 4:42 PM
Hi
I am trying to process INVOIC01 IDOC using standard SAP function module IDOC_INPUT_INVOIC_MRM. Always its giving error at a particular poing as given below.
IF f_subrc = 0 AND NOT i_rbkpv-zterm IS INITIAL
AND i_fix_payment_terms IS INITIAL
AND ( NOT i_rbkpv-zbd1t IS INITIAL
OR NOT i_rbkpv-zbd1p IS INITIAL
OR NOT i_rbkpv-zbd2t IS INITIAL
OR NOT i_rbkpv-zbd2p IS INITIAL
OR NOT i_rbkpv-zbd3t IS INITIAL ).
f_subrc = 4.
f_fieldname = 'RBKPV-ZBD1T'.
ENDIF.
The values are i_rbkpv-zterm = A500 , i_rbkpv-zbd1t = 30 and all other variables in the condition are initial. This 'IF' condition always fails.
Anybody have any idea why this happens ? Any solutions/ work arounds / suggestions ? Please.
Can anybody tell me what is this i_fix_payment_terms ?
ofcource..points will be rewarded for helping answers...
Regards,
Krishnakumar
2006 Jan 23 4:47 PM
Check the sy-subrc value before the IF statement in debug.
It should always 0 and i_fix_payment_terms (Internal table ) will not contain any value.
Hope it will fill after that....