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

Need help in module Pool programming.

Former Member
0 Likes
428

Dear gurus

I'm stuck in a step of Module Pool program

Steps i used for enhancement in XK01.

1) i appended a structure in table LFA1 having two fields A and B.

2) then i went to IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields -> Prepare Modification-Free Enhancement of Vendor Master Record ( Here i created my screen group Z1 without Function Code.

3) then i created below module pool program. of screen 9999 and in layout i added to fields to display A and B which i appended.

PROGRAM  ZSNAK_XK01.

TABLES: lfa1.
module status_9999 output.

endmodule.                 " status_9999  OUTPUT

module user_command_9999 input.

endmodule.

4) After this i wen to IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields ->

Business Add-In: Processing of Master Data Enhancements ( Here i created my implementation on method CHECK_ADD_ON_ACTIVE and added this code

if i_screen_group eq 'Z1'.
e_add_on_active = 'X'.
endif.

5) then i went to IMG-> Logistic -> Business Partner-> Vendor -> Adoption of Customer's Own Master Data Fields ->

Business Add-In: Customer Subscreens. and created my implementation on method GET_TAXI_SCREEN where i have written this code.

e_screen = '9999'.
  e_program = 'ZSNAK_XK01'.
  e_headerscreen_layout = ''.

After activation when i execute t-code XK01 i see my button there after INFORMATION BUTTON when i click on it i get following error.

Incorrect screen type: Screen is incorrectly defined or used.

The attribute screen type with the values 'Normal Screen' and

'Subscreen' determines the use of the screen. If a normal screen is used

as subscreen or vice versa, an error occurs.

The screen "ZSNAK_XK01" 9999 has, in this respect, an inappropriate screen

type.

Please guide me

Regards

Saad Nisar.

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
386

I think you have defined the screen 9999 as normal screen. go to attributes tab of the screen and make it as "subscreen' (radio button) and activate

2 REPLIES 2
Read only

former_member194669
Active Contributor
0 Likes
387

I think you have defined the screen 9999 as normal screen. go to attributes tab of the screen and make it as "subscreen' (radio button) and activate

Read only

0 Likes
386

LOL.. Thank you so much