on 10-02-2007 6:09 PM
Can anyone tell me how the function modules /SAPAPO/TS_RLG_STEP_CREATE and /SAPAPO/TS_RLG_STEPS_READ can be used for creating and reading realignment data to and from realignment table?A sample code would help.
Thanks & Regards,
Savitha
HI Savitha -
A sample code for '/SAPAPO/TS_RLG_STEP_CREATE' would be :
Fill selection itab of source values to be passed to FM /SAPAPO/TS_RLG_STEP_CREATE
perform f_fill_selection_tab_from.
Fill selection itab of dest. values to be passed to FM /SAPAPO/TS_RLG_STEP_CREATE
perform f_fill_selection_tab_to.
plobname = pareaid .
Create Realignment step
call function '/SAPAPO/TS_RLG_STEP_CREATE'
exporting
iv_bas_plobid = g_plobname
it_sel_from = g_t_selfrom
it_sel_to = g_t_selto
iv_prop = g_t_cvc_tar_wa-copyfac "Default 100
iv_del_source = g_t_cvc_src_wa-oldcvcdel "X
iv_logic = g_t_cvc_tar_wa-copylog "M or A
exceptions
no_permission = 1
info_object_invalid = 2
proportion_invalid = 3
plobid_invalid = 4
infoprov_invalid = 5
rlgtab_name_not_created = 6
found_but_not_created = 7
invalid_selection = 8
error = 9
others = 10.
form f_fill_selection_tab_from .
refresh g_t_selfrom .
clear : g_t_selfrom_wa .
g_t_selfrom_wa-iobjnm = '9AMATNR'.
g_t_selfrom_wa-value = g_t_cvc_src_wa-matnr .
append g_t_selfrom_wa to g_t_selfrom .
clear : g_t_selfrom_wa .
g_t_selfrom_wa-iobjnm = '9ALOCNO'.
g_t_selfrom_wa-value = g_t_cvc_src_wa-locno .
append g_t_selfrom_wa to g_t_selfrom .
endform
form f_fill_selection_tab_to .
refresh g_t_selto.
clear : g_t_selto_wa .
g_t_selto_wa-iobjnm = '9AMATNR'.
g_t_selto_wa-value = g_t_cvc_tar_wa-matnr .
append g_t_selto_wa to g_t_selto .
clear : g_t_selto_wa .
g_t_selto_wa-iobjnm = '9ALOCNO'.
g_t_selto_wa-value = g_t_cvc_tar_wa-locno .
append g_t_selto_wa to g_t_selto .
endform
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello savitha,
The RLG_STEP_CREATE is used to create a new realignment task and RLG_STEPS_READ is used to read info from the Step table.
If your reqt. is to make new entries into the realignment table you can also do it in another method. You can use the FM /SAPAPO/TS_RLG_TABLE_GET to get the name of the realignment table for a given Plobid and you can insert entries into this table using the normal Insert statement. Then you can use the STEPS_READ to read the entries.
Hope this helps!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Savitha,
You can refer the below includes for the sample code. Let me know if you have any issues in passing the parameter.
/SAPAPO/LSDP_INCFRL (/SAPAPO/TS_RLG_STEP_CREATE)
/SAPAPO/LOO_TS_RLGU06 (/SAPAPO/TS_RLG_STEPS_READ)
Regards,
Siva.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
4 | |
3 | |
2 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.