Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

APO Location product Issue: ABAP Objects

Hi,

In the standard SAP module:

Fucntion /SAPAPO/MSDP_SH_MATLOC_LIST there is a routine:

Matloc_get.

Within this there is function call:

CALL FUNCTION '/SAPAPO/DM_MATLOC_GET'.

CALL FUNCTION '/SAPAPO/DM_MATLOC_GET'

EXPORTING

it_matloc_id = lt_matid_locid

iv_vrsioid = lv_version

IMPORTING

et_matloc = lt_matloc

EXCEPTIONS

matloc_not_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

  • egal

ENDIF.

The flow of the program after this is:

IF gp_exit IS INITIAL.

CALL METHOD cl_exithandler=>get_instance

EXPORTING

exit_name = '/SAPAPO/SDP_SELECTOR'

null_instance_accepted = seex_false

IMPORTING

act_imp_existing = gv_exit_active_imp

CHANGING

instance = gp_exit.

ENDIF.

IF gv_exit_active_imp = true.

CALL METHOD gp_exit->loc_prod_value_list

EXPORTING

it_selection = it_selection

it_matloc = lt_matloc

it_matkey_tab = lt_matkey

it_mattext = lt_mattxt

it_loc = lt_location

it_loctext = lt_loc_txt

it_field_catalog = ct_alv_fcat

CHANGING

ct_value_list = ct_value_list.

ENDIF.

The problem is with the standard SAP program which does not pick up the material location combination in the internal table ct_value_list based on the user selections in the transaction /sapapo/sdp94 for the planning book.

Has anyone come across this problem before.

cheers

Aveek

Tags:
Not what you were looking for? View more on this topic or Ask a question