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

call transaction in module pool

Former Member
0 Likes
1,881

Hello Experts,

I am working on module pool which is similar to iw31 transaction.

In this I have 2 screens '0100' and '0110'.

The module pool is designed in screen 0100.

I have created a program when i press the 'SAVE' button it creates an order number.

in screen 0110 it gives a message that order number '512345' saved.

In this screen of messages i.e '0110' I need to call transaction IWBK with order number reference.

Can anyone help me how to acchive this.

Thanks and Regrds,

Nikhil.

Hello Experts,

I am working on module pool which is similar to iw31 transaction.

In this I have 2 screens '0100' and '0110'.

The module pool is designed in screen 0100.

I have created a program when i press the 'SAVE' button it creates an order number.

in screen 0110 it gives a message that order number '512345' saved.

In this screen of messages i.e '0110' I need to call transaction IWBK with order number reference.

Can anyone help me how to acchive this.

Thanks and Regrds,

Nikhil.

11 REPLIES 11
Read only

Former Member
0 Likes
1,496

hi nikhil

you can use call transaction in pai of screen 0110

regards nishant malhotra

Read only

Former Member
0 Likes
1,496

Hi

Once u Save the order,service order will be created.Immediately check the sy-subrc.Then use the statement

Call Transaction 'IWBK'.

regards,

raghavender

Read only

Former Member
0 Likes
1,496

hai,

Use call transacction ... AND SKIP FIRST SCREEN to call another transactionm

Read only

mohammed_moqeeth
Active Participant
0 Likes
1,496

Hi,

In screen 0110 create a pushbutton 'DISP_ORDER' and when you click DISP_ORDER i.e., IF SY-UCOMM = 'DISP_ORDER' then use CALL TRANSACTION Statement.

Regards,

Moqeeth.

Read only

Former Member
0 Likes
1,496

Dear Nikhil ,

U should use statement Call Transaction 'IWBK' in the PAI of screen 0110.

You can also use Call transaction 'IWBK' and SKIP FIRST SCREEN .

To use the order number you can use the SET PARAMETER ID statement so as to use the order number in the transaction .

You can alos store the order number in a temporary variable to use it further .

Hope this helped you.

Regards

Aditi Wason

Read only

0 Likes
1,496

Dear Aditi,

I have used the same logic but what problem I am facing is now the display messages does not come in screen 0110.

MODULE CALL_STATUS_LIST OUTPUT.(in pbo)

  LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.
  SET PF-STATUS '0110'.


  WRITE: / 'Instandhaltungsauftrag:' COLOR 6 ON.

  LOOP AT T_RET WHERE NUMBER <> 113.

    DATA : V1(60) TYPE C,
          V2(60) TYPE C,
          V3(60) TYPE C,
          VFINAL(60) TYPE C.

    IF INDI = 'Y'.
      CASE SY-TABIX.
        WHEN '2'.
          V1 = T_RET-MESSAGE.
          V2 = V1+0(5).
          V3 = V1+20(36).
          CONCATENATE V2 V3 INTO VFINAL SEPARATED BY SPACE.
          T_RET-MESSAGE = VFINAL.
        WHEN '3'.
          CLEAR T_RET.
          MODIFY T_RET.
      ENDCASE.

      WRITE: / T_RET-MESSAGE.
    ELSE.
      WRITE:/ 'PM ORDER NOT CREATED'.
    ENDIF.
  ENDLOOP.

  SKIP 2.

  WRITE: / 'WM-Bereitstellung:' COLOR 6 ON.


  LOOP AT MTAB.

    IF INDI = 'Y'.

      CALL FUNCTION 'MESSAGE_TEXT_BUILD'
        EXPORTING
          MSGID               = MTAB-MSGID
          MSGNR               = MTAB-MSGNR
          MSGV1               = MTAB-MSGV1
          MSGV2               = MTAB-MSGV2
          MSGV3               = MTAB-MSGV3
          MSGV4               = MTAB-MSGV4
        IMPORTING
          MESSAGE_TEXT_OUTPUT = TMP.

      WRITE:/ TMP.
    ELSE.
      WRITE:/ 'TRANSFER ORDER NOT CREATED'.
    ENDIF.
  ENDLOOP.

  CLEAR ITAB[].
  CLEAR: CAUFVD-TPLNR.
  CLEAR: CAUFVD-IWERK.
  CLEAR: IFLOTX-PLTXT.
  CLEAR: CAUFVD-EQFNR.
  CLEAR: TEXT, TEXT1.


ENDMODULE.                 " call_status_list  OUTPUT
*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0110  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE USER_COMMAND_0110 INPUT.

  CASE SY-UCOMM.

 WHEN 'PB'.

  SET PARAMETER ID 'ANR' FIELD 'T_NUMBERS-AUFNR_NEW'.
    CALL TRANSACTION 'IWBK'.
ENDCASE.


ENDMODULE.                 " USER_COMMAND_0110  INPUT

Read only

0 Likes
1,496

Hi Nikhil ,

Sorry for the delay.

I dont see any error in the code .

Just try using mesage type instead of Write statement may be that is creating problem .

One more suggestion debug your program to see whether the values are getting transferred or not .

Please update .

Thanks and Regards

Aditi Wason

Read only

0 Likes
1,496

Dear Aditi,

Thanks its working now.

I will make it as answered.

Thanks,

Nikhil.

Read only

Former Member
0 Likes
1,496

thread solved

Read only

0 Likes
1,496

Hi nikhil

Can you please tell the solution and why was the problem occurring .

Thanks and Regards

Aditi Wason

Read only

0 Likes
1,496

Dear Aditi,

You need to use events when you want to trigger call by transaction .

After setting pf status in pbo after endmodule you need to use at line-selection command and than the coding for transaction will work.

Regrds,

Nikhil.