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

Screen Exit

Former Member
0 Likes
1,595

Hi,

I need to enhance the additonal data tab for Service Order Change (IW32). I found a exit that has a screen exit that allows me to do this. The new subscreen should have 2 buttons. On click of one button a custom transaction needs to be called. Since the subscreen does not have an OKCODE, how do i achieve this ??

Thanks,

Reshmi

1 ACCEPTED SOLUTION
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
1,171

You can create PAI module in your subscreen. In this PAI module, check sy-ucomm for the function your set in your 2 buttons.

PAI of your subscreen

MODULE CHECK_SUBSCREEN.

MODULE CHECK_SUBSCREEN INPUT.

CASE SY-UCOMM.

WHEN 'BUTTON1'.

"do something

WHEN 'BUTTON2'.

"do something else

ENDCASE.

ENDMODULE. " CHECK_SUBSCREEN.

7 REPLIES 7
Read only

nablan_umar
Product and Topic Expert
Product and Topic Expert
0 Likes
1,172

You can create PAI module in your subscreen. In this PAI module, check sy-ucomm for the function your set in your 2 buttons.

PAI of your subscreen

MODULE CHECK_SUBSCREEN.

MODULE CHECK_SUBSCREEN INPUT.

CASE SY-UCOMM.

WHEN 'BUTTON1'.

"do something

WHEN 'BUTTON2'.

"do something else

ENDCASE.

ENDMODULE. " CHECK_SUBSCREEN.

Read only

0 Likes
1,171

I need to pass the Service order number to the Z transaction from the exit.

Since i call the Z transaction from PAI, the screen exit doesn't have the importing paramter that will have the service number. How do i achieve this ??

Thanks.

Read only

0 Likes
1,171

Hello Reshmi,

Have got a few points to share on this...

1. You understand, of course, that you cannot have your own fields on the <i>Additional Data</i> tab.

2. IWO10018 is indeed the correct enhancement for your purpose. When you activate this enhancement for use, you will get a new tab in IW32. This new tab is where your (sub)screen is going to appear.

3. It is true that a subscreen does not have an OK CODE. But the main screen does. So, you'll have to put your code in the PAI of the subscreen (just like Nablan had suggested).

4. And now, we don't have the Service Order number within this subscreen's PAI. For that you will also have to implement the Function exit (EXIT_SAPLCOIH_018) that is available in the enhancement. This Function Exit gives you the Service Order header details, which you will have to save in a global variable. When you come to the PAI, you can access the aforesaid global variable to get the order number.

I hope the procedure is clear. Please get back if there's some problem.

Regards,

Anand Mandalika.

Read only

0 Likes
1,171

Hi,

I have just discovered a simpler solution for this problem. I realize that the order number AUFNR has got a parameter ID (ANR) assigned at it's data-element. so you can simply use the GET PARAMETER ID statement to get the current order number.

Since this is a <i>change</i> transaction, the parameter ID will get set in the first screen of the transaction itself, and will be available.

Regards,

Anand Mandalika.

Read only

0 Likes
1,171

Hi,

When we have the following code and assign the funciton codes BUTTON1 and 2 for both buttons it gives an error and requires an entry of Fcodes in T185F table and also in T185. How to tackle that or how can we enter the values in it

PAI of your subscreen

MODULE CHECK_SUBSCREEN.

MODULE CHECK_SUBSCREEN INPUT.

CASE SY-UCOMM.

WHEN 'BUTTON1'.

"do something

WHEN 'BUTTON2'.

"do something else

ENDCASE.

ENDMODULE. " CHECK_SUBSCREEN.

Read only

0 Likes
1,171

Hi,

I have created an additional tab for VA01,02 and 03. I have added fields from VBAP table and KOMK structure.

Now fields added from KOMK structure are displaying empty fields(no value). The fields areVAT REG NO (KOMK-stceg) and Tax Code (KONP-MWSK1).

i have added fields with same name, so i have not coded anything. Do i need to code something for these fields?

Please suggest the possible solution.

Thanks in advance for your suggestions.

Regards,

NarsiReddy cheruku.

Read only

Former Member
0 Likes
1,171

Hi Reshmi,

For IW32, you can use the following user exit.

IWO10012

Regards

Elini.P