cancel
Showing results for 
Search instead for 
Did you mean: 

Infospoke selection: rsbspokeselset - activation issue

Former Member
0 Kudos

Dear all

I needed to create variable selections for an infospoke, so have created an ABAP program that modifies tables RSBSPOKESELSET, RSBSPOKEVSELSET and RSBSPOKEV based on a selection screen.

The idea was that I would then create variants for this program and run it and the infospoke from a process chain.

My ABAP does indeed change the infospoke selections - however the infospoke is in status 'REVISED' after the program is run and needs to be activated before the selections will be in place for runtime.

Does anyone know why my infospoke is no longer active after I change these tables? Or how I can automate this activation in my ABAP.

I lookforward to your advice

Tressan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Tressan ,

I am facing simial varaible selection problem in my project . could you please send your soultion . It would be a great help if you van guide me and sent me the line of codes that you must have written down for solving this problem

Regards,

BW USER

Former Member
0 Kudos

If you need a selection using ABAP what you could do is run the Infospoke for all the data and then delete the data you dont need in the BADI

Former Member
0 Kudos

Thanks Jasprit - but my selection needs to be dynamic. Hence my abap program to modify RSBSPOKESELSET, RSBSPOKEVSELSET and RSBSPOKEV. This way I can use variants on the ABAP to change the selections in a process chain, run the infoset, and then repeat with a different selection criteria.

My issue unfortunately is that while the abap is sucessful in changing the selections - the infospoke is then in an inactive status - so I cannot then run it with the 'new' selections

Do you know how I can avoid the infospoke becoming inactive - or indeed how I could activate it from the ABAP program?

Thanks in advance for your help

Former Member
0 Kudos

Hi Tressan,

For automatic activation of Info spoke after the selection we need to use BDC call transaction method,After the variable selections Infospoke will automatically activated .

This is the ABAP code for activating the infospoke automatically after the variable seletion.This is the case extracting the data from CUBE to DB table.

  • Batchinputdata of single transaction

DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

  • messages of call transaction

DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

PERFORM bdc_activate_Infospoke.

&----


*& Form BDC_ACTIVATE_SPOKE

&----


  • text

----


FORM BDC_ACTIVATE_INFOSPOKE .

DATA : LV_PARAMS TYPE CTU_PARAMS .

LV_PARAMS-DISMODE = 'N' .

LV_PARAMS-UPDMODE = 'S' .

LV_PARAMS-RACOMMIT = 'X' .

PERFORM BDC_DYNPRO USING 'SAPLRSAWB' '2001'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=RSBOH1'.

PERFORM BDC_DYNPRO USING 'SAPLRSBO_GUI' '0300'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RSBODYN300-INFOSPOKE'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=CHAN'.

PERFORM BDC_FIELD USING 'RSBODYN300-INFOSPOKE'

'Name of the infospoke'.

PERFORM BDC_DYNPRO USING 'SAPLRSBO_GUI' '0200'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RSBODYN200-TXTSH'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=SUB3'.

PERFORM BDC_FIELD USING 'RSBODYN200-TXTSH'

'Description of infospoke'.

PERFORM BDC_FIELD USING 'RSBODYN2000-OHSOURCE'

'Name of source from which you are extracting data'.

PERFORM BDC_FIELD USING 'RSBODYN2000-OHSRCTYPE'

'CUBE'.

PERFORM BDC_FIELD USING 'RSBODYN2000-OHDEST'

'Destination name'.

PERFORM BDC_FIELD USING 'RSBODYN2000-UPDMODE'

'F'.

PERFORM BDC_FIELD USING 'RSBODYN2000-MAXSIZE'

'10000'.

PERFORM BDC_DYNPRO USING 'SAPLRSBO_GUI' '0200'.

PERFORM BDC_FIELD USING 'BDC_CURSOR'

'RSBODYN200-TXTSH'.

PERFORM BDC_FIELD USING 'BDC_OKCODE'

'=ACTI'.

PERFORM BDC_FIELD USING 'RSBODYN200-TXTSH'

'Description of infospoke'.

perform bdc_dynpro using 'SAPLRSBO_GUI' '0200'.

perform bdc_field using 'BDC_OKCODE'

'/EEXIT'.

perform bdc_field using 'BDC_CURSOR'

'RSBODYN200-TXTSH'.

perform bdc_dynpro using 'SAPLRSBO_GUI' '0300'.

perform bdc_field using 'BDC_OKCODE'

'/EEXIT'.

perform bdc_field using 'BDC_CURSOR'

'RSBODYN300-INFOSPOKE'.

perform bdc_field using 'RSBODYN300-INFOSPOKE'

'Name of the infospoke'.

perform bdc_dynpro using 'SAPLRSAWB' '2001'.

perform bdc_field using 'BDC_OKCODE'

'/EEXIT'.

REFRESH MESSTAB.

CALL TRANSACTION 'RSA1' USING BDCDATA

OPTIONS FROM LV_PARAMS

MESSAGES INTO MESSTAB.

ENDFORM. " bdc_activate_spoke

----


  • Start new screen *

----


FORM BDC_DYNPRO USING PROGRAM DYNPRO.

CLEAR BDCDATA.

BDCDATA-PROGRAM = PROGRAM.

BDCDATA-DYNPRO = DYNPRO.

BDCDATA-DYNBEGIN = 'X'.

APPEND BDCDATA.

ENDFORM. "BDC_DYNPRO

----


  • Insert field value *

----


FORM BDC_FIELD USING FNAME FVALUE.

CLEAR BDCDATA.

BDCDATA-FNAM = FNAME.

BDCDATA-FVAL = FVALUE.

APPEND BDCDATA.

ENDFORM. "BDC_FIELD

Regards,

Devi