Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 11212

Re: module pool programming

$
0
0

Some more clarity required in reqs.

 

From my understanding I say the below words. Please reply back and make corrections accordingly.

 

1. In Screen umber hundred 100 You put two fields.

     One is Material number

    And what is the second field , its data type and what is the purpose of that field? you mentioned that you kept that second field in Chain module. Why it is for you?

 

2. Suppose you press enter after entering Material number in screen 100 do you want to leave to screen 110 to display in material details in table control. If yes why you are again placing that two fields in again screen 110 also.

 

 

 

 

Example code :

 

In screen 100 's PAI event.

 

PROCESS AFTER INPUT.

 

  CHAIN.

** Module to check the data entered in Material no field and to leave the screen from 100 to 110.

 

    FIELD G_MATNR MODULE CHECK_MATNR.

   

  ENDCHAIN.

 

In the module Check_matnr the code can be as follows.

 

if not g_matnr is initial.

 

select material details from database table to internaltable where matnr = g_matnr.

 

LEAVE TO SCREEN 110.


endif.

 

 

So after pressing enter in screen 100. You will be redirect to screen 110 and also you will get the data to internal table ready. Now you can display that data from internal table to table control in PBO and PAI module of Screen 110,

 

Screen 110 should be some thing like below.

 

 

PROCESS BEFORE OUTPUT.

  LOOP AT ITAB  WITH  CONTROL TC1.

 

  ENDLOOP.

 

 

PROCESS AFTER INPUT.

 

  LOOP AT ITAB.

 

  ENDLOOP.

 

 

Regards,

Praveen Chitturi.

 


Viewing all articles
Browse latest Browse all 11212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>