Application Development 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: 

How to implement BADI_SLS_HEAD_SCR_CUS with scree.n SAPMV45A 4323

chris_mowl
Active Participant
0 Kudos
1,470

Hello all,

I have implemented BADI_SLS_HEAD_SCR_CUS and I want to know what program and screen I need to use in method ACTIVATE_TAB_PAGE. Can I make a copy of screen 4323 (Subscreen Container for BADI_SLS_HEAD_SCR_CUS) and use it as the dynpro and SAPMV45A as the program?

How do we use screen 4323?

Thanks,

Chris

1 ACCEPTED SOLUTION

chris_mowl
Active Participant
0 Kudos
1,371

This is what I found. Screen 4323 is there to control the flow of the screen you create. I created a screen and called it 9000 and put my field on it. I put the code below in the ACTIVATE_TAB_PAGE method. So, now I have a tab (it's next to the Additional Data B tab in the Header Data section) with my field on it. I have seen other posts explaining how to get it in the menu path.

My ultimate goal is to populate this field with a value passed from BAPI_SALESORDER_CREATEFROMDAT2.

I'll update this post once I figure that out.

METHOD if_ex_sls_head_scr_cus~activate_tab_page.

DATA: l_head_scr TYPE LINE OF sales_cust_tab_page_t.


CONSTANTS: c_caption TYPE string VALUE 'FPX DATA',
c_program TYPE string VALUE 'SAPMV45A',
c_dynpro TYPE string VALUE '9000'.

l_head_scr-head_caption = c_caption.
l_head_scr-head_program = c_program.
l_head_scr-head_dynpro = c_dynpro.

APPEND l_head_scr TO ct_cus_head_tab.

ENDMETHOD.
3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos
1,371

AFAIK create subscreens in a custom program

  • Function group are easiest, as you can define subscreen and FM to exchange data with implementing class.
  • Read also online help on Business Function LOG_SD_CI_02

0 Kudos
1,371

Thanks raymond.giuseppi for taking the time to comment!

chris_mowl
Active Participant
0 Kudos
1,372

This is what I found. Screen 4323 is there to control the flow of the screen you create. I created a screen and called it 9000 and put my field on it. I put the code below in the ACTIVATE_TAB_PAGE method. So, now I have a tab (it's next to the Additional Data B tab in the Header Data section) with my field on it. I have seen other posts explaining how to get it in the menu path.

My ultimate goal is to populate this field with a value passed from BAPI_SALESORDER_CREATEFROMDAT2.

I'll update this post once I figure that out.

METHOD if_ex_sls_head_scr_cus~activate_tab_page.

DATA: l_head_scr TYPE LINE OF sales_cust_tab_page_t.


CONSTANTS: c_caption TYPE string VALUE 'FPX DATA',
c_program TYPE string VALUE 'SAPMV45A',
c_dynpro TYPE string VALUE '9000'.

l_head_scr-head_caption = c_caption.
l_head_scr-head_program = c_program.
l_head_scr-head_dynpro = c_dynpro.

APPEND l_head_scr TO ct_cus_head_tab.

ENDMETHOD.