Application Development 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: 

INVOIC01 IDOC giveing error.

Former Member
0 Kudos
111

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

1 REPLY 1

Former Member
0 Kudos
60

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....