Skip to Content
0
Former Member
Oct 26, 2016 at 05:42 AM

PO relelease strategy is not triggering

432 Views Last edit Oct 26, 2016 at 07:58 AM 2 rev

Hi,

we have added new field order reason EKPO-BSGRU as new characteristic , created new characteristic and assigned the table cekko , field USRC1 and maintained values ,assigned the characteristic in the class , developer added logic in the exit

EXIT_SAPLEBND_002and include ZXM06U22

SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; }

DATA:ls_ekpo TYPE ekpo.
*DATA:lv_bsgru TYPE string.
*
*DATA: lv_exit_name TYPE zpil_exit_id,
* lr_data TYPE REF TO data,
* lr_struc TYPE REF TO data.
*
*FIELD-SYMBOLS: <lt_data> TYPE ANY TABLE,
* <ls_struc> TYPE any,
* <ls_temp> TYPE any.
*
*LOOP AT it_bekpo INTO ls_ekpo .
* lv_bsgru = ls_ekpo-bsgru.
*
* CALL METHOD zcl_pil_execute=>get_set_data_struct
* EXPORTING
* iv_id = 'MM-REASONSFORORDERING'
* iv_input = lv_bsgru
* IMPORTING
* ev_data = lr_data.
*
*
* ASSIGN lr_data->* TO <lt_data>.
*
* ASSIGN lr_data->* TO <lt_data>.
* LOOP AT <lt_data> ASSIGNING <ls_struc>.
* ASSIGN COMPONENT 'USRC1' OF STRUCTURE <ls_struc> TO <ls_temp>.
* IF sy-subrc = 0.
* IF <ls_temp> = lv_bsgru.
* e_cekko-usrc1 = ls_ekpo-bsgru.
* EXIT.
* ELSE.
* CLEAR ls_ekpo.
* ENDIF.
* ENDIF.
* ENDLOOP.
*
*ENDLOOP.
*UNASSIGN:<ls_struc>,<ls_temp>.
*DATA: : lo_badi TYPE REF TO zbdf_mapping_reason_code.
*GET BADI lo_badi.
*
**.Call BADI
*CALL BADI lo_badi->zif_mapping_reason_code~mapping_reason
* EXPORTING
* is_cekko = ls_ekpo
* IMPORTING
* es_cekko = ls_cekko.

but the release is nto triggering in the PO , pls advise