cancel
Showing results for 
Search instead for 
Did you mean: 

Realignment Default settings

Former Member
0 Kudos

Hello, is there a way, when you create a new realignment step, how to set "Delete soure" = True and Copy Logic=A

as default

We have today programmed it in :

Transaktion : /SAPAPO/RLGCOPY

Program : GP447FE7ONSOE0DA51EJL4K7QYQ

We would like to find a "standard" solution/customizing , as we are missing the changes due auto generated programs

Thanks in advance

Br. Jan Juhl

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member583013
Active Contributor
0 Kudos

Hi,

In standard there is no customzing setting to set default values .

You can modify the following lines in the report /SAPAPO/TS_PSTRU_SAMPLE_REALIG

**>>

CALL FUNCTION '/SAPAPO/TS_RLG_GET_LABEL'

EXPORTING

IV_FIELD_ID = GC_FI_DELSRC

IMPORTING

EV_FIELD_DESCRIPTION = GV_FIELD_DESCRIPTION .

tx_delsr = GV_FIELD_DESCRIPTION.

ed_delsr = gs_rlgn_tab_row-DELSRC. >(replace this line with the code:

if gv_rlgn_mode = gc_new and gs_rlgn_tab_row-DELSRC is initial.

ed_delsr = 'X'.

else.

ed_delsr = gs_rlgn_tab_row-DELSR.

endif. )

***<<

***>>

CALL FUNCTION '/SAPAPO/TS_RLG_GET_LABEL'

EXPORTING

IV_FIELD_ID = GC_FI_LOGIC

IMPORTING

EV_FIELD_DESCRIPTION = GV_FIELD_DESCRIPTION .

tx_logic = GV_FIELD_DESCRIPTION.

if gv_rlgn_mode = gc_new and gs_rlgn_tab_row-LOGIC is initial.

ed_logic = 'M'. ---> (replace 'M' with 'A')

else.

ed_logic = gs_rlgn_tab_row-LOGIC.

endif.

The report //TS_PSTRU_SAMPLE_REALIGN is not a normal program, so it will

have synatx errors. read note 335528 regarding this.

If you make changs to standard templete then every generated program take these changes,so no need to change every

generated program eery time.

Regards,

Sunitha

Former Member
0 Kudos

Thanks Sunitha, it worked perfectly

Br Jan Juhl