cancel
Showing results for 
Search instead for 
Did you mean: 

Product not extending to vendor location after ciffing purchase info record

0 Kudos

Dear team,

I am ciffing purchase info record from ECC to APO..purchase info record is showing in external procurement relationship in apo and t lane is generating..but product is not extending to vendor location...kindly help

Regards

pradeepta

Accepted Solutions (0)

Answers (6)

Answers (6)

former_member191728
Active Participant
0 Kudos

Hi Pradeepta

I have a similar requirement

what is approach u followed to create product master at vendor location

it will be a great help if you can help me

Thanks

Pawan Akella

kenneth_snyder
Active Contributor
0 Kudos

why you need product at vendor location?

If so just use a user exit to create it.

Former Member
0 Kudos

Hi Pradeepta,

                         Whenever you CIF purchase info record only the transportation lane will be created automatically. So in this case you have to manually go and extend the product at vendor location and assign it to an active model. I hope this will help you.

Regards,

  Vivek

0 Kudos

it was solved ..issue in the enhancement

0 Kudos

Hi You can use badi  /SAPAPO/PWB_TPSRC_IN for this .

method /SAPAPO/IF_EX_PUR_TPSRC_IN~PUR_TRPROD_IN_EXIT.

include /sapapo/constants.

* break aleremote.

   types   ty_matloc type table of /sapapo/matloc ,

                ty_matmod type table of /sapapo/matmod .

   data: lv_locid type /sapapo/locid,

         lv_matid type /sapapo/matid,

         ls_matloc type /sapapo/matloc,

         ls_matmod type /sapapo/matmod,

         lt_matloc type ty_matloc,

         lt_matmod type ty_matmod ,

         ls_trprod type /SAPAPO/SMD_TRPROD.

   loop at ct_trprod into ls_trprod .

     clear ls_matloc.

     CALL FUNCTION '/SAPAPO/DM_MATLOC_GET_DATA'

       EXPORTING

         iv_matid  = ls_trprod-matid

         iv_locid  = ls_trprod-locfr   "changing LOCTO to locfr for extending material for vendor

       IMPORTING

         es_matloc = ls_matloc

       EXCEPTIONS

         others    = 1.

     if sy-subrc ne .

       CLEAR ls_matloc-lszid.

       CLEAR ls_matloc-dprid.

       CLEAR ls_matloc-sprid.

       CLEAR ls_matloc-dplid.

       CLEAR ls_matloc-rqmid.

       ls_matloc-matid = ls_trprod-matid"Material id

       ls_matloc-locid = ls_trprod-locfr"vendor id

       CALL FUNCTION 'SYSTEM_UUID_C22_CREATE'

         IMPORTING

           uuid_c22 = ls_matloc-matlocid.

       IF ls_matloc-rrp_type IS INITIAL.

         ls_matloc-rrp_type = '2'.

       ENDIF.

       IF ls_matloc-beskz IS INITIAL.

         ls_matloc-beskz = 'X'.

       ENDIF.

       GET TIME STAMP FIELD ls_matloc-changeutc.

       ls_matloc-changeuser = sy-uname.

       ls_matloc-createutc  = ls_matloc-changeutc.

       ls_matloc-createuser = ls_matloc-changeuser.

     endif.

     append ls_matloc to lt_matloc.

     CALL FUNCTION '/SAPAPO/DM_MATMOD_GET'

       EXPORTING

         iv_matid = ls_trprod-matid

         iv_locid = ls_trprod-locfr

         iv_model = '000'

       EXCEPTIONS

         others   = 1.

     if sy-subrc <> 0.

       ls_matmod-mandt = sy-mandt.

       ls_matmod-matid = ls_trprod-matid.

       ls_matmod-locid = ls_trprod-locfr.

       ls_matmod-model = '000'.

       append ls_matmod to lt_matmod.

     endif.

     if not lt_matloc is initial.

       CALL FUNCTION '/SAPAPO/DM_PRODUCTS_POST'

         EXPORTING

           iv_vb     = 'I'

         TABLES

           it_matloc = lt_matloc.

       CALL FUNCTION '/SAPAPO/DM_MODEL_POST'

         EXPORTING

           iv_vb     = 'I'  "to insert record

         TABLES

           it_matmod = lt_matmod.

     endif.

   endloop.

endmethod.

former_member191728
Active Participant
0 Kudos

Hi Mahesh

I have similar requirement

i want to know when this BADI will be triggered

Thanks

Pawan Akella

0 Kudos

Hi,

it will be triggered while ciffing purchase info record from ECC to APO.

Former Member
0 Kudos

Hi Pradeepta it is a standard behaviour.

Info Record will only create t-Lanes and they wont maintain material at vendor location.

Kindly use LSMW to maintain materials at vendor locations in bulk.

After maintenace you also have to assign these relationship to the active model.

Regards,

Amit P Hiran

dev_shetty
Active Participant
0 Kudos

Hi Pradeepta,

                    You are supposed to have product/vendor location master data created before you create procurement relationship. You either manually extend the product master to vendor or use mass update to extend it if you have lots of records.

Thanks

Dev

Former Member
0 Kudos

Hi,

CIF material to vendor location first.

Thanks.