Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Issue in coping stanard program for PP61 (Change Shift Planning)

$
0
0

Hi Team,

 

For one of our requirement, I have copied the PP61 (Prog name : SAPFH5AH) to ZPP61 (Prog name : ZSAPFH5AH) and made changes accordingly.

 

But some stanard functionality stopped working.

 

After analysis, I have found that at many places program name is hardcoded and also it is calling another Function group, which custom program is unable to call.

 

The main issue is that while calling many forms, it is passing standard prog name instead of custom one.

 

Hence most of global tables are emply.

 

 

For ex

 

In one of include FH5AHF00_GET_MARKED_EMPLOYEE  

 

                                         CALL FUNCTION 'DYNP_VALUES_READ'

                                           EXPORTING

                                             dyname               = 'SAPFH5AH'

                                             dynumb               = i_dynnr

                                             translate_to_upper   = 'X'

                                           TABLES

                                             dynpfields           = dynprofelder

                                           EXCEPTIONS

                                             invalid_abapworkarea = 1

                                             invalid_dynprofield  = 2

                                             invalid_dynproname   = 3

                                             invalid_dynpronummer = 4

                                             invalid_request      = 5

                                             no_fielddescription  = 6

                                             invalid_parameter    = 7

                                             undefind_error       = 8

                                             OTHERS               = 9.

 

Also it is calling perform of another stanard Funt group : SAPLRHEI

 

FH5AHF00_ARRANGE_DATA_FOR_EXPO   

 

PERFORM export_person_record_index(saplrhei)
                       TABLES person_record_index_tab.

 

Please suggest what is best way to handle this situation.

 

I have tried to copied many includes and then change the name.

 

Please suggest.

 

Warm Regards

 

Krishan


Viewing all articles
Browse latest Browse all 8332

Trending Articles



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