on 06-28-2010 1:26 PM
Hi Guru's
I need to have list of materials assigned to interchangeability groups. In TCode: /incmd/ui I can see this list but I need to have this list in a zprogram. Is there any BAPI or FM to see the products assigned to the interchangeability groups?
Best regards,
Sergey
Hi Sergey,
try this BAPI
/INCMD/BAPI_GROUP_GETLIST.
You just need to put at least some selection criteria into this BAPI - ie status range. Then the excerpt of program might look like this:
* Select all statuses in case no manual selection was made
IF src_stat IS INITIAL.
APPEND INITIAL LINE TO src_stat ASSIGNING <fs_status>.
<fs_status>-sign = 'I'.
<fs_status>-option = 'BT'.
<fs_status>-low = ' '.
<fs_status>-high = '4'.
ENDIF.
* Read all the INCMD groups together with models they are assigned to
CALL FUNCTION '/INCMD/BAPI_GROUP_GETLIST'
TABLES
group_status_selection = src_stat
model_selection = src_mod
group_header_data = lt_header
group_models_data = lt_scr_group_models
return = lt_return.
You can find the complete (fully functional program) at http://oprsteny.com/?p=447
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
Please check the INCLUDE /INCMD/LAPPL_UIUXX
Regards
R. Senthil Mareeswaran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sergey,
Below are some function modules related to interchanebility:
/SAPAPO/INC_MD interchangeability - APO-Relevant Parts
/SAPAPO/INC_CONS_CHECK Consistency Check: Model Assignment Interchangeability
/SAPAPO/INC_MODEL interchangeability - APO-Relevant Parts
/SAPAPO/INC_GROUP_QUERY Query Interchangeability Group
/SAPAPO/INC_MODEL_CONS_CHECK Consitency check: Model Assignment of Interchangeability
/SAPAPO/INC_MODEL_COPY Copy: Model Assignment of Interchangeability
/SAPAPO/INC_MODEL_LINKS_DEL Delete Model Assignments of Interchangeability Groups
/SAPAPO/INC_MODEL_LINKS_GET Read Model Assignments of Interchangeability Groups
/SAPAPO/INC_MODEL_LINKS_SET Write Model Assignments of Interchangeability Groups
/SAPAPO/INC_MODEL_SCREEN Screen for Model Assignments of Interchangeability Groups
/SAPAPO/INC_SERVICE INC Services : Using RTO
/SAPAPO/PL_GROUP_DETL_GET Read Interchangeability Group Details
/SAPAPO/PL_GROUP_QUERY Query Interchangeability Group
/SAPAPO/PL_NEXT_PDT_DETL_GET Get Next Product of an Interchangeability Group
/SAPAPO/PL_PREV_PDT_DETL_GET Get Previous Product of an Interchangeability Group
/SAPAPO/MSDP_DEP Deployment Functions
/SAPAPO/MSDP_SUBST_CONS_CHK Consistency Check for Interchangeability
/SAPAPO/MSDP_SNPHEU SNP Heuristic
/SAPAPO/MSDP_SNPHEU_GET_INC_MD Get Interchangeability Master Data
/SAPAPO/MSDP_SNPINC SNP Interchangeability developments
/SAPAPO/MSDP_SNPINC_HORIZ_CHK Interchangeability Horizon Check Control
/SAPAPO/MSDP_SNPINC_STK_FWD Interchangeability stock forwarding
/SAPAPO/PDEM_ALIGNMENT Demand Alignment
/SAPAPO/PDEM_ALG_GET_INCMD Get Interchangeability Data
Regards
Datta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for quick and full response!
At the moment trying to deal with FM /SAPAPO/PL_GROUP_DETL_GET - for search the list of interchangeable materials. It is run but do not return the data ( sy-subrc = 0). Please tell me any example of using (or where I can find the value of enter parametres) Thanks!
PS
In TA /INCMD/UI materials exist and set
Hi,
In above function module /SAPAPO/PL_GROUP_DETL_GET following export parameters are given:
EXPORTING
ir_product = lt_prod
ir_location = lt_location
ir_icno = lt_icno
ir_ictype = lt_ictype
ir_relvn = lt_relvn
ir_istat = lt_istat
iv_multi_level = iv_multi_level
iv_guid_type = iv_guid_type
iv_rule_eval_flg = iv_rule_eval_flg
it_com_struct = it_com_struct
it_gp_filter = it_gp_filter
The first two parameters should be starting point.
Regards
Datta
Thanks Datta!
Problem in filling these entrance parameters.
I has tried to find values of parameters via "Data element"
Value of field LOCID, parameter location was taken from the table/INCMD/LKUPLNK
Value of field PRODUCT was taken from the table:/INCMD/PVINC.
I have entered these parameters to FM. Then I've run it. The result was that FM unload no data without any exeptions.
Where I can find the values of entrance parameters for FM testing. Or is there any other method how I can determine the list of interchangeable materials?
Thanks!
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.