Skip to Content
0

Generic datasource i_initflag not going in ELSE statement

May 02, 2017 at 12:02 PM

23

avatar image

I'm extracting data from ECC's FM based generic data source. The data source is FULL type & not DELTA capable. What I find is that its is not extracting data for last few days. Upon debugging through RSA3 I notice the code always satisfies IF condition i.e.

i_initflag = sbiwa_c_flag_on. Value always taken is 'X'. Code is not going to ELSE statement.

Even to my surprise when I checked in Quality system first time RSA3 brought results but from next time onwards RSA3 is bringing 0 records, same issue in quality as that of production when I debugged i.e. code not hitting ELSE.

FM template used:

------------------------------------------------

IF i_initflag = sbiwa_c_flag_on.

Code

ELSE."Initialization mode or data extraction ?

Code

-------------------------------

I've checked the blog:

https://wiki.scn.sap.com/wiki/display/BI/Custom+Function+Modules+to+extract+the+data+from+SAP+SYSTEM+to+BW

This says first time it will hit 'X' and next time blank. But issue is it is not hitting blank, so not going in ELSE statement.

This code was working correctly till few days back, now its not working. Data source is not INIT/DELTA (its FULL only), so I can't set INIT. Has anyone experienced this type of issue before? Is RSA3 should not be run on this data source? How to resolve this issue?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers