Application Development and Automation 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: 
Read only

How to trigger the button ‘All measuring points on object” (T-Code - IK22)

Former Member
0 Likes
2,133

In transaction IK22, I'm able to skip the first screen using CALL TRANSACTION AND SKIP FIRST SCREEN but couldn't be able to trigger button ‘All measuring points on object” automatically.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,013

Did you try to build a small BDC to use with CALL TRANSACTION USING?

In transaction IK22, I'm able to skip the first screen using CALL TRANSACTION AND SKIP FIRST SCREEN but couldn't be able to trigger button ‘All measuring points on object” automatically.

10 REPLIES 10
Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,014

Did you try to build a small BDC to use with CALL TRANSACTION USING?

Read only

0 Likes
2,013

I have tried BDC but it's not working for our scenario. The requirement is when I try to click a button(Custom button) from the T-Code IW32, It's directly navigate to the T-Code IK22 "All measuring points on object" screen..

Read only

0 Likes
2,013

Could you elaborate on 'it's not working for our scenario', could you post the code your already try?

Read only

0 Likes
2,013

'it's not working for our scenario' - Not skip the first screen and also unable to navigate to the button directly.

Code:

DATA: BDCDATA LIKE BDCDATA OCCURS 0 WITH HEADER LINE.

DATA: MESSTAB LIKE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

perform bdc_dynpro using 'SAPLIMR0' '1220'.

perform bdc_field using 'BDC_OKCODE'

'/00'.

perform bdc_field using 'RIMR0-DFTIM' '11:21:27'.

perform bdc_field using 'RIMR0-DFDAT'

'20.03.2019'.

perform bdc_field using 'RIMR0-DFRDR' 'XXXXX'.

perform bdc_field using 'BDC_CURSOR' 'EQUI-EQUNR'.

perform bdc_field using 'EQUI-EQUNR' '10012714'.

perform bdc_dynpro using 'SAPLIMR0' '4210'.

perform bdc_field using 'BDC_CURSOR'

'IMRG-POINT(01)'.

perform bdc_field using 'BDC_OKCODE'

'=ADAL'.

*perform bdc_field using 'RIMR0-DFTIM' * '11:21:27'.

*perform bdc_field using 'RIMR0-DFDAT' * '20.03.2019'.

*perform bdc_field using 'RIMR0-DFRDR' * 'XXXXX'.

*perform bdc_dynpro using 'SAPLIMR0' '4210'.

*perform bdc_field using 'BDC_CURSOR' * 'RIMR0-FLGSL(01)'.

*perform bdc_field using 'BDC_OKCODE' * '=BU'.

*perform bdc_field using 'RIMR0-DFTIM' * '11:21:27'.

*perform bdc_field using 'RIMR0-DFDAT' * '20.03.2019'.

*perform bdc_field using 'RIMR0-DFRDR' * 'XXXXX'.

*perform bdc_dynpro using 'SAPLIMR0' '1220'.

*perform bdc_field using 'BDC_OKCODE' * '/ERW'.

*perform bdc_transaction using 'IK22'.

*perform close_group.

CALL TRANSACTION 'IK22' USING BDCDATA

UPDATE 'A'

MODE 'A'

MESSAGES INTO MESSTAB.

FORM bdc_dynpro USING program dynpro.

CLEAR BDCDATA.

BDCDATA-PROGRAM = PROGRAM.

BDCDATA-DYNPRO = DYNPRO.

BDCDATA-DYNBEGIN = 'X'.

APPEND BDCDATA.

ENDFORM.

FORM BDC_FIELD USING FNAM FVAL. IF FVAL <> SPACE.

CLEAR BDCDATA.

BDCDATA-FNAM = FNAM.

BDCDATA-FVAL = FVAL.

APPEND BDCDATA.

ENDIF.

ENDFORM.

Read only

0 Likes
2,013

Read documentation of CALL TRANSACTION and use the option OPTIONS FROM, so it will execute the BDC data and then

  clear options.
  options-dismode = 'A'.
  options-updmode = 'S'.
  options-defsize = 'X'.
  options-racommit = 'X'.
  options-nobinpt = 'X'. " not in BDC mode
  options-nobiend = 'X'. " do not end transaction at end of BDC
  call transaction 'IK22'
        using bdcdata
        options from options.

Read only

0 Likes
2,013

I have added the above code but no changes has been made. Still it is not skip the first screen and doesn't navigate to IK22 All measuring points on object button.

Read only

0 Likes
2,013

Change the value of options-dismode to 'E' for example, and perform some tests.

(Seems you didn't read the documentation in the provided link...)

Read only

0 Likes
2,013

CALL TRANSACTION 'IK22' USING BDCDATA
UPDATE 'A'
MODE 'E'.

I have changed the mode as E and now it is working.

Thanks Raymond

Read only

0 Likes
2,013

When I click BACK from IK22, It needs to go to IW32 (From where I can call to IK22). How to achieve this?

Read only

Former Member
0 Likes
2,013

When I click back from IK22, It goes to IW32(Where I Call from IK22). How to achieve this?