Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8372

Using SET / GET parameter in BW transformation

$
0
0

Hi All,

 

I have a requirement where i need to dump data via openhub to an external shared drive and databased using a dynamic user input values. My approach was to design an ABAP report in SE38 with selection option/ parameter (approach was choosen because the user can select any filter values and also because the data might be most times will be more than 1million record which rules out most of the BW / BO reporting tools. Also, there is a very complex ranking logic that need to be applied to the data selected by the user input). Whatever the user inputted in the ABAP report will be used to dynamically populate the DTP filters and an event based process chain will be called after the user executed the report which will move the data to next level DSO and to openhub.

 

Also, there is an 'Indicator' field that is not connected to any object in the backend that i created within the SE38 program. The requirement was  to populate whatever the user inputted into the 'Indicator' field into BW DSO.

 

Everything is working apart from the 'Indicator' field which is not getting populated in BW DSO.

 

What i did was to use a SET/GET parameter statement to dynamically read the user input values into memory within the SE38 program. In BW, at the transformation level, i used a GET parameter statement to retrieved the values from memory and assigned it to the fields.

 

 

SE38 Program

       SELECT-OPTIONS:

       DATE  FOR /BIC/AZPUR_O3400-PSTNG_DATE  OBLIGATORY,

       PLANT   FOR /BIC/AZPUR_O3400-/BIC/ZCMPLANT"OBLIGATORY.

 

      PARAMETERS:

      STATUS TYPE /BIC/AZPUR_O3400-/BIC/ZPOSTAT DEFAULT SPACE,

      MATERIAL TYPE /BIC/AZPUR_O3400-/BIC/ZCMMAT,

      RETAIN TYPE TAB_IND-INDIC.

 

 

     SET PARAMETER ID 'RTC123' FIELD ' '.

     SET PARAMETER ID 'RTC123' FIELD RETAIN.

 

 

 

BW Transformation Start Routine

DATAINDICATOR TYPE C LENGTH 1.

 

GET PARAMETER ID 'RTC123' FIELD INDICATOR2.

 

* Resetting Parameter ID to null

GET PARAMETER ID 'RTC123' FIELD ' '.



Issue is, after my DTP, the 'Indicator' field is not getting populated. But, if i debug my DTP, i can see that the values was assigned to parameter 'RTC123'  in SAP memory and the Indicator2 field is getting populated after the Get Parameter statement.

 

Hence, the code works very well in DEBUG mode and i can see all my values. But, in real DTP execution, the code is not working.

 

Any idea please.............. Is there something i am missing or is there a Function module out there that can show all the values inputted in Selection option/Parameter fields in SE38?

 

 

 

Thanks


Viewing all articles
Browse latest Browse all 8372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>