2009 Aug 18 11:44 AM
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.
2009 Aug 18 12:12 PM
hi nikhil
you can use call transaction in pai of screen 0110
regards nishant malhotra
2009 Aug 18 12:15 PM
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
2009 Aug 18 12:29 PM
hai,
Use call transacction ... AND SKIP FIRST SCREEN to call another transactionm
2009 Aug 18 12:41 PM
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.
2009 Aug 18 1:27 PM
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
2009 Aug 18 1:33 PM
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
2009 Aug 25 6:16 AM
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
2009 Aug 25 6:18 AM
Dear Aditi,
Thanks its working now.
I will make it as answered.
Thanks,
Nikhil.
2009 Aug 25 6:19 AM
2009 Aug 25 6:21 AM
Hi nikhil
Can you please tell the solution and why was the problem occurring .
Thanks and Regards
Aditi Wason
2009 Aug 25 6:27 AM
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.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |