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: 

FM for uploading screen metadata

Former Member
0 Kudos

Hi ABAPers,

Can anyone let me know the Function Module that is used to upload a Screen Metadata file to create a screen?

I downloaded the screen file from screen painter of one system. Now I want to upload it to another system, but programatically do that. So want to know the Fuction Module to do that.

Thank you in advance.

Regards

Ramesh.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ramesh,

1. RS_DYNPRO_UPLOAD

This if the FM.

2. Here u will have to provide 1 parameter :

File

Regards,

Amit M.

Message was edited by: Amit Mittal

Message was edited by: Amit Mittal

7 REPLIES 7

Former Member
0 Kudos

Hi Ramesh,

1. RS_DYNPRO_UPLOAD

This if the FM.

2. Here u will have to provide 1 parameter :

File

Regards,

Amit M.

Message was edited by: Amit Mittal

Message was edited by: Amit Mittal

former_member188685
Active Contributor
0 Kudos

try this Fm..

RS_DYNPRO_UPLOAD

VIjay

Former Member
0 Kudos

Hi,

As per forum etiquette,

Pls award points if u found any answers helpful.

regards,

amit m.

0 Kudos

Hi Amit,

Thanks for ur inputs.

By using the FM RS_DYNPRO_UPLOAD I am not able to create the screen.. after FM executes successfully but the screen is not created. Any idea why it is not getting created?

Thanks and Regards,

Ramesh

0 Kudos
  DATA: other_dynpro,
        h_up LIKE d020s,               
        e_up TYPE flow_list,           
        f_up TYPE dynpro_field_list,   
        m_up LIKE d023s OCCURS 0 WITH HEADER LINE,
        t_up LIKE d020t-dtxt,
        l_success.

  other_dynpro = ' '.
  h_up-prog = h-prog.
  h_up-dnum = h-dnum.
  CALL FUNCTION 'RS_DYNPRO_UPLOAD'
       IMPORTING
            header            = h_up
            descript          = t_up
            other_dynp        = other_dynpro
       TABLES
            fields            = f_up
            flowlogic         = e_up
            params            = m_up
       CHANGING
            program           = h_up-prog
            dynnr             = h_up-dnum
       EXPORTING
            FILE      = P_PATH
       EXCEPTIONS
            OTHERS            = 5.

thanks

vijay

0 Kudos

Hi

I think RS_DYNPRO_UPLOAD upload only the data to create a screen.

You should use the statament like IMPORT DYNPRO or GENERATE DYNPRO.

So you add these line to Vijay code:

IMPORT/GENERATE DYNPRO h_up f_up e_up m_up ID id.

But it should be better you see the help, becouse SAP notices to note use them, they are always for internal use.

Max

Former Member
0 Kudos

Hi ramesh,

1. RS_DYNPRO_UPLOAD

I tried it.

This FM allows only EDIT for screen.

It does not allow to CREATE a new SCREEN.

2. Even IMPORT DYNPRO

do the same.

regards,

amit m.