cancel
Showing results for 
Search instead for 
Did you mean: 

Can we create suborder using bapi_alm_order_maintain?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

marc_marco
Contributor
0 Kudos

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

jogeswararao_kavala
Active Contributor
0 Kudos

Paul maguire looks achieved this and posted how to go about it here in this thread

Former Member
0 Kudos

Thanks for your reply.

I had looked all old threads on this topic before posting including this one. It would be good if you provide me with the code for reference.

jogeswararao_kavala
Active Contributor
0 Kudos

It is highly unlikely that you would get what you wanted here in this space. Post your query in ABAP space and see what happens.