on 12-24-2010 6:42 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
99 | |
9 | |
9 | |
5 | |
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.