cancel
Showing results for 
Search instead for 
Did you mean: 

Copying Control settings

Former Member
0 Kudos

Hi,

By using any copying control settings from sales document to Delivery order , Can we able to change ship-to-party in Delivery document? or By creating any routine would address this issue?

Thanks,

KP.

EM

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

Create your own VOFM subrutine (use 003 as a sample and do the changes) and set it in VTLA


form daten_kopieren_XXX.   "vofm xxx as a copy from 003
        xvbpa = cvbpa.
        xvbpa-vbeln = likp-vbeln.
       "here, set your coding for LIFNR or KUNNR and PARVW
        xvbpa-updkz = updkz_new.
        xvbpa-posnr = posnr_low.
endform.

I'm telling you about header. If it's for item check them

Regards

Eduardo

Former Member
0 Kudos

Thank you Edurado,

Ship-to party in delivery is Header level. so shall I go with my Abaper and change the code to ship-to party field as modifible in Delivery order at the time of creating Delivery document? or Any other settings need to be changed..Please advice.

Thanks,

KP.

eduardo_hinojosa
Active Contributor
0 Kudos

Hi KP,

1. Check what VOFM you have in copy rule. Copy it to the new VOFM. Talk with your ABAP to decide how to do it (range number for subroutines, RV80HGEN, ....)

2. Decide what kind of partner you will use (customer or vendor, function,....)

3. Set the policy or rule when the substitution must work. You and your ABAPer might know how to design the algorithm in ABAP.

4. Set a breakpoint and debug it to check thatt it works. Think in all possible scenarios and check them before transport to production enviroment.

I hope this helps you

Regards

Eduardo