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: 

Standard Sap Module Program into Z Program - Display mode

former_member374952
Participant
0 Kudos

Hi all,

I have to quick fix an issue So ,copied the SAP Standard  transaction MDS_LOAD_COCKPIT into  ZMDS_LOAD_COCKPIT program

Activated all the includes,program and screens and created the  Z Transaction for the same.

The standard sap transaction MDS_LOAD_COCKPIT is executing perfectly, But the copy ZMDS_LOAD_COCKPIT transaction is executed without errors however

the screens are rendered in display mode. am not able to switch it to change mode .

Do I need to make any other changes in the include ?

Best Regards,

Vicky

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

Did you look for usage of SY-TCODE or SY-REPID in the standard report (e.g. reading information on transaction in some system table) and for constants as ' MDS_LOAD_COCKPIT' or 'MDS_LOAD' ?

Regards,

Raymond

5 REPLIES 5

raymond_giuseppi
Active Contributor
0 Kudos

Did you look for usage of SY-TCODE or SY-REPID in the standard report (e.g. reading information on transaction in some system table) and for constants as ' MDS_LOAD_COCKPIT' or 'MDS_LOAD' ?

Regards,

Raymond

0 Kudos

Hi Raymond,

Thank you for the quick response.

Yes I looked out for  SY-REPID and constants ' MDS_LOAD_COCKPIT'  .


Do I need to reset these constants to  my new custom ZMDS_LOAD_COCKPIT report ?


Best Regards,

Vicky

0 Kudos

If you want to use a copy of program (*) yes when related to current report (e.g. subscreen dynpro call or some FM hat require repid to execute some form in caller), but also check if those are used in where criteria of some SELECT statements, you may have to add some record to system tables or not always translate the value.

Regards,

Raymond

(*) DId you first try to use some enhancement of program ?

0 Kudos

Hi Raymond,

Thank you for the help.

I could fix some of the issues by changing the dynpro  references . Now  the fields are rendered

in  change mode but still the copy of the sap transaction ( in my case ZMDS_LOAD_COCKPIT )  behaves


in a different way when compared to standard sap tcode.


I get the error message like "Select Valid function " when I execute the Z report .


I cant work with just enhancement because need to tweak standard sap logic in some of the includes.


Regards,

Vicky

0 Kudos

Did you copy/activate CUAD status, also perform a SQL trace to identify required system table with keys as tcode or repid.