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

Changing Routing operations using FM.

Former Member
0 Likes
643

Hi,

Is there any FM available to change the operations in Routing? Please let me know.

With regards,

Sharath Kumar R.

4 REPLIES 4
Read only

Former Member
0 Likes
592

Hello,

There are no useful FMs/BAPIs for this. But you can change the operation data by recording (SHDB).

Hope this helps you.

Best Regards,

Murugesh AS

Read only

Former Member
0 Likes
592

Cannot use recording because the screens popping out are dynamic making it unstable.

If anyone comes across any FM please let me know.

With regards,

Sharath.

Read only

0 Likes
592

Hello,

Try this sample code which will update the short text of the operation:

REPORT zca02
       NO STANDARD PAGE HEADING LINE-SIZE 255.

INCLUDE bdcrecx1.
PARAMETERS: p_plnnr LIKE rc271-plnnr OBLIGATORY.
PARAMETERS: p_aennr LIKE rc271-aennr OBLIGATORY.
PARAMETERS: p_plnal LIKE rc271-plnal OBLIGATORY.
PARAMETERS: p_vornr LIKE rc27h-vornr OBLIGATORY.
PARAMETERS: p_ltxa1 LIKE plpod-ltxa1 OBLIGATORY.

INITIALIZATION.
  ctu = 'X'.
  ctumode = 'A'.
  cupdate = 'S'.

START-OF-SELECTION.

  PERFORM open_group.

  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC271-AENNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'RC271-PLNNR'
*                              '001'.
                                p_plnnr.
  PERFORM bdc_field       USING 'RC271-AENNR'
*                              '001'.
                                p_aennr.
  PERFORM bdc_field       USING 'RC271-PLNAL'
*                              '1'.
                                p_plnal.
  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27X-ENTRY_ACT'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=OSEA'.
  PERFORM bdc_field       USING 'RC27X-ENTRY_ACT'
                                '1'.
  PERFORM bdc_dynpro      USING 'SAPLCP02' '1010'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'RC27H-VORNR'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=ENT1'.
  PERFORM bdc_field       USING 'RC27H-VORNR'
*                              '0050'.
                                p_vornr.
  PERFORM bdc_dynpro      USING 'SAPLCPDI' '1400'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'PLPOD-VORNR(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=VOD1'.
  PERFORM bdc_field       USING 'RC27X-FLG_SEL(01)'
                                'X'.
  PERFORM bdc_dynpro      USING 'SAPLCPDO' '1200'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=BU'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'PLPOD-LTXA1'.
  PERFORM bdc_field       USING 'PLPOD-LTXA1'
*                              'POS1'.
                                 p_ltxa1.
  PERFORM bdc_transaction USING 'CA02'.

  PERFORM close_group.

Hope this helps you.

Regards, Murugesh AS

Read only

Former Member
0 Likes
592

Hi Murugesh,

Thanks a lot for ur inputs, but i am sorry to say our clients are not willing to allow me to use BDC. Could you please let me know if there are any FM's available.

Once again thanks a lot for ur help.

With regards,

Sharath.