cancel
Showing results for 
Search instead for 
Did you mean: 

copying partner type

Former Member
0 Kudos

Hi,

I am new to abap.i have created a routine 901 in which i have copied standard routine 002.In my routine i need to copy item partner type ZD from source to target document.first i want to know which one will be source and target in standard routine 002

i have written the code like this

constants:l_zd type char2 value 'ZD'

IF sy-subrc = 4.

IF vbpa-parvw = l_zd.

cvbpa-parvw = vbpa-parvw.

sy-subrc = 0.

endif.

endif

i think something is wrong.please clear me

Accepted Solutions (0)

Answers (1)

Answers (1)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi,

See these notes:

SAP Note 380507 - SD partner determination: FAQ for the functions

SAP Note 550102 - FAQ: SD Partner Determination II

SAP Note 327220 - VOFM function and its objects

SAP Note 156230 - Requirements: What is permitted, what is not?

My suggestion is that you can set a break-point, and check how to works your VOFM subroutine.

Regards,

Eduardo

Former Member
0 Kudos

Hi,

where i can find these notes..not able to find

Thanks,

Shakeer

Former Member
0 Kudos

hi

i am not able to understand the coding part written by you.

constants:l_zd type char2 value 'ZD' - declared contastant

IF sy-subrc = 4 - why are you checing this

IF vbpa-parvw = l_zd -LZD is nothing but ZD an hard coded value. if partner function is ZD then assigning the partner function to the structure partner function.

cvbpa-parvw = vbpa-parvw - DO

sy-subrc = 0 - forcefully you are maing sy-subce = 0

endif.

endif

please let me now your requriment please.

you can see the OSS notes in service.sap.com

Former Member
0 Kudos

Hi Balaji,

I need to copy Partner type(VBAP-PARVW) ZD from source to target document.For this i copied code from standard data transfer routine(VOFM>Datatransfer>orders-->routine 002) but don't know how and where to write the code in my routine?

Thanks,

Shakeer