Skip to Content
Author's profile photo Former Member

Screen Exit for CO11N- Step wise descritpion

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.


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

After entering the enhancement assignment, click on the components.


The following screen appears in components section.


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


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.


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.


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


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.


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


The following fields appear in the layout after selecting.


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.


Click on the Z include to write the code


This function Module corresponds to PBO.


Click on the Z include to write the code


This function Module corresponds to PAI.

Step 8. Finally activate the project.


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


            (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.


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.


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


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

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



Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Modadugu Hemanth Kumar
      Modadugu Hemanth Kumar

      Good one, Namita. Thanks for sharing and expecting more interesting articles like this

      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Thanks ūüôā ...

      sure I will try to put more articles.

      Author's profile photo K Kumar
      K Kumar

      Hi Namita,

      Good 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...



      Author's profile photo Former Member
      Former Member
      Blog Post Author

      Hi ,

      If you follow these steps , it will be saved under the table AFRUD which can be later used by Reports.



      Author's profile photo swadhin ghatuary
      swadhin ghatuary

      Hi Buddy,

      Good One, It definitly helpfull for New Abaper to Understanding Screen Exit

      Thanks a lot for effort, Keep it Up

      Author's profile photo Former Member
      Former Member

      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...?? 

      Author's profile photo Former Member
      Former Member



      the code in the Exits:

      afrud = is_afrud


      es_afrud = afrud

      is not working.  There is no reference to the "afrud" structure within these exits.  The code generates syntax errors.

      is there something missing from your example above?

      Author's profile photo Paula Miller
      Paula Miller



      I had exactly the same issue.Were you able to find any resolution I was able to declare AFRUD in ZXCOFTOP, which fixed the syntax errors, but only the data in the SAP standard fields was transferred. None of the custom fields in the append, which were added to screen 900, had values in them. I still feel like something is missing.

      Author's profile photo Kali Charan
      Kali Charan

      What i was observed is, we need to append Afru not Afrud. Then everything will solve the issue.

      Once append Afru, If we observe carefully, Afrud is having Afru as include so afrud is getting z field. No need to add one more time at afrud. Remaining code is same.Once add save the data, z field in afru will be update.


      Author's profile photo Nallam Sri Divya
      Nallam Sri Divya

      The above blog was very helpful for my requirement. Thanks a lot !!!

      The changes I did from my side to make my development work with help of this blog are :

      1.I have appended my custom fields in AFRU table.

      2. I have globally declared AFRU table in ZXCOFTOP

      3. The code in the Exits is changed as

      afru = is_afrud .     [ZXCOFU23]


      es_afrud = afru .     [ZXCOFU24]

      After this, The standard DB table AFRU got populated with custom field values and standard values .