Step 1.The screen shot contain the Program Name is as shown below:

Step 2.Go to SE11 and go to table MODSAP.

On executing the above, the output is given below.

On observing the above data, the probable Enhancement is CONFPP07.

Step 3. Go to Transaction SMOD, enter CONFPP07, click the ‘Documentation’ Radio button which will guide you through the following steps:

  • Subscreens which needs to be created.
  • Create Include/append Structure in the corresponding database table
  • The desired Function Module which needs to be modified so that the data is passed from Main program to the new created subscreen and vice-versa.

Step 4.To Create the Project.

Go to transaction CMOD. Enter the project Name and click on the create button.

untitled.JPG

Enter the Short text for the Project and click on the enhancement assignments.

After entering the enhancement assignment, click on the components.

untitled.GIF

The following screen appears in components section.

untitled.GIF

Step 5 Go to the corresponding database table AFRUD via transaction SE11.Click on the Append Structure Push button.

untitled.GIF

A pop up appears where name of the Append Structure needs to be given starting with Z. On clicking enter the following is obtained as shown in the screen shot.

untitled.GIF

Three fields are created in the append structure table.

Finally Activate the structure which in turn activates the database table AFRUD and is appended in the database table as shown in the screen shot below.

untitled.GIF

Step 6.Go back to CMOD once again .Click on display and then into components.

untitled.GIF

Click on the 900 subscreen corresponding to program SAPLXCOF.A pop up appears asking for whether to create the screen or not.

On clicking enter; the first screen appears as given below.

Enter the short description.


Click on the Go to Layout Push button and click on the following as shown in screen shot below.

untitled.GIF

In the following screen enter the Table Name by clicking Get from Dic. And select fields which need to be inserted in the subscreen.

untitled.GIF

The following fields appear in the layout after selecting.

untitled.GIF

Go back to the Main Screen Painter and Active the screen.

Step 7.Click on the Function Exits appearing in the Components through CMOD transaction.

untitled.GIF

Click on the Z include to write the code

untitled.GIF

This function Module corresponds to PBO.

untitled.GIF

Click on the Z include to write the code

untitled.GIF

This function Module corresponds to PAI.

Step 8. Finally activate the project.

untitled.GIF

Step 9.Complete the configuration to link the subscreen.

            The linking of the subscreen to the Main program can be done in two ways:

            (a).By defining single screen entry as a standard profile. This is done by Transaction

                  OPK0.

            (b).By defining single screen entry to the CORUPROF parameter in the user defaults for

                  the current user. This is done by Transaction SU3.

In the present scenario, a standard profile is created in the configuration to link the subscreen.

On entering the transaction OPK0, the following screen appears as shown below.

untitled.GIF

Click on the New Entries button.

Enter the following information:

  1. Enter the Profile Name
  2. Enter the Description.
  3. Enter the Header area value from the List Box.
  4. Enter the Detail area values from the List Box for maximum 7 Areas. Also enter the Pushbutton Texts.
  • If Activities Area is chosen in the Detail Areas. Click on the Default tab button Enter the Activity text in the Text corresponding to the block Service.
  • Click on the Save Button.

untitled.GIF

The following screen appears, click the checkbox for Standard Profile and click on the Save button.

untitled.GIF

Thus the Standard Profile is created which links the Subscreen with the main screen.

Finally, enter the transaction CO11N and the following screen appears.

untitled.GIF

untitled.GIF

To report this post you need to login first.

6 Comments

You must be Logged on to comment or reply to a post.

  1. K Kumar

    Hi Namita,

    Good document..is the data entered in the newly created fields is saved in AFRU table so that it can be fetched in to a report?..can you confirm on this…

    Thanks

    Kumar

    (0) 
  2. Praveen Moolera

    Hi Namita,

    Thx for your post.

    But z fields values are not showing in the report. after doing all these steps need to do any addition settings or activation…?? 

    (0) 

Leave a Reply