on 05-25-2015 5:41 PM
Hi All,
Requirement is to create suborder for superior order which already exists in the system. Data for suborder is coming through interface in the system.
Is it possible to create suborder using bapi_alm_order_maintain? If yes, then please provide me with the code to implement it.
Thanks in Advance.
Regards,
Ankur
Hi Ankur,
Possible solution is also to develope your own solution with user exit IBIP (batch input based), you canFolow this steps which used for similar requirement.
STEP1:
Activate user exit IBIP
STEP 2:
Define new structure like ZIBIPPMO (must include tcode and recordname as the first 2 fields in this structure and the rest of the required fields in the sub order )
STEP 3:
Copy this sample code and adjust per you requirement at include ZXPMZU01 at FM : EXIT_SAPLIBIP_001
&---------------------------------------------------------------------*
*& Include ZXPMZU01
*&---------------------------------------------------------------------*
TABLES: zibippmo.
CASE int_tab-tcode.
WHEN 'IW36'.
IF int_tab-tcode ='IW36'.
zibippmo = int_tab.
CLEAR: i_bdcdata[], i_bdcdata.
REFRESH tot_assoc_tab.
PERFORM assoc_ibiptext. "get IBIPtext records
PERFORM assoc_ibipbdcd. "direct bdc Data
PERFORM bdc_dynpro USING 'SAPLCOIH' '0108'.
PERFORM bdc_field USING 'CAUFVD-PRIOK' zibippmo-priok.
PERFORM bdc_field USING 'AUFPAR-PM_AUFART' zibippmo-auart.
PERFORM bdc_field USING 'CAUFVD-MAUFNR' zibippmo-maufnr.
PERFORM bdc_dynpro USING 'SAPLCOIH' '3000'.
PERFORM bdc_field USING 'CAUFVD-VAPLZ' zibippmo-vaplz.
PERFORM bdc_field USING 'CAUFVD-INGPR' zibippmo-ingrp.
PERFORM bdc_field USING 'CAUFVD-VAWRK' zibippmo-vawrk.
PERFORM bdc_field USING 'CAUFVD-ILART' zibippmo-ilart.
PERFORM bdc_field USING 'CAUFVD-GSTRP' zibippmo-gstrp.
PERFORM bdc_field USING 'CAUFVD-GLTRP' zibippmo-gltrp.
PERFORM bdc_field USING 'CAUFVD-TPLNR' zibippmo-tplnr.
PERFORM bdc_field USING 'CAUFVD-KTEXT' zibippmo-ktext.
PERFORM bdc_okcode_current_dynpro USING '=IHKD'.
PERFORM bdc_field USING 'CAUFVD-PSPEL' zibippmo-pspel.
PERFORM proc_ibipbdcd USING 0. " process irect data
PERFORM bdc_field USING 'BDC_OKCODE' '/11'.
bdcdata[] = i_bdcdata[].
ENDIF.
WHEN OTHERS.
ENDCASE.
STEP 4:
Call Function IBIP_BATCH_INPUT with your data (append structure zibippmo to int_tab_imp) to create the Sub order (see reference for this FM at IBIP help)
Hopes this help
Regards,
Ziv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.