‎2007 Jun 25 5:33 PM
Hi!
I need to add qualifier ZH to E1EDKA1.
Here is my pseudo code:
WHEN E1EDKA1.
IF E1EDKA1-PARVW = 'RS'.
... some code
ENDIF.
IF E1EDKA1-PARVW = 'RE'.
... some code
ENDIF.
IF E1EDKA1-PARVW = 'BK'.
... some code
ENDIF.
I have debuged E1EDKA1-PARVW and noticed that it is changing the value only to one of these 3, but not to ZH. So, I can not populate ZH because it will not react to:
IF E1EDKA1-PARVW = 'ZH'.
... some code
ENDIF.
What to do?
Will reward,
Mindaugas
‎2007 Jun 25 7:26 PM
Hi,
Please check FM IDOC_OUTPUT_INVOIC for partner function logics.
Go to PERFORM FUELLEN_IDOC_INTTAB then go to PERFORM fill_e1edka1 USING 'RS'. In this form, SAP populates the segment E1EDKA1 with RS partner functions.
You may also want to check PERFORM fill_e1edka1_all (for BK) and PERFORM fill_e1edka1_fd as well.
Regards,
Ferry Lianto
‎2007 Jun 25 5:36 PM
Hi
First check that whether that Partner function was created or not by a functional consultant?
check this in KNVP or VBPA tables or EKPA table(check the F4 on field PARVW) related to Purchasing.
It should exist first in those tables
then only it will come into the Idoc segments
Also check whether this partner function ZH was fetched in IDOC segment data or not?
Reward points for useful Answers
Regards
Anji
‎2007 Jun 25 5:51 PM
seems functional consultant has done it:
KNVP - ZH exists
VBPA - ZH exists
EKPA - ZH exists
M.
‎2007 Jun 25 6:12 PM
It should save ,are you Passing correct partner function ?
Can i see ur code ?
Thanks
Seshu
‎2007 Jun 25 6:48 PM
Hi!
User Exit contains such code:
WHEN E1EDKA1.
IF E1EDKA1-PARVW = 'RS'.
... some code
ENDIF.
IF E1EDKA1-PARVW = 'RE'.
... some code
ENDIF.
IF E1EDKA1-PARVW = 'BK'.
... some code
ENDIF.
IF E1EDKA1-PARVW = 'ZH'.
... some code
ENDIF.
WHEN E1EDK02.
...
...
...
and it is not reacting to case <b>IF E1EDKA1-PARVW = 'ZH'.</b> because E1EDKA1-PARVW is never value ZH (have debugged)...
M.
‎2007 Jun 25 6:29 PM
Hi,
Please check the invoice document (VF03) whether it has partner function ZH or not (go to menu: Goto -> Header Partner).
If it does, then your IDoc segment E1EDKA1 should be populated with partner function ZH. Otherwise, you can populate via coding inside outbound FM user exits.
Regards,
Ferry Lianto
‎2007 Jun 25 6:57 PM
in fact there are just two partner functions listed, none of the above...
I was trying to understand how for example qualifier RS is beeing created, maybe ZH is to be created the same way and populated in User Exit...
One more crazy solution: when qualifier is RS, create ZH... but this I do not like too much, because after some time if ZH is created automatically, it could cause some problems...
M.
‎2007 Jun 25 7:03 PM
Hi,
If you see only two partner functions in the invoice document then you will get only two partner functions in IDoc.
Please ask the SD functinal folk on how the partner function work. There are configuration involved.
You should not change/control this via coding as you want to have the same information between actual invoice document and IDoc for data integrity purposes.
Regards,
Ferry Lianto
‎2007 Jun 25 7:10 PM
yes, just 2 in the list, but more if to press F4... I am not sure about functional things.. but such partner function like RS was not in the list as well while segment has this qualifier RS in the result Idoc...
M.
‎2007 Jun 25 7:26 PM
Hi,
Please check FM IDOC_OUTPUT_INVOIC for partner function logics.
Go to PERFORM FUELLEN_IDOC_INTTAB then go to PERFORM fill_e1edka1 USING 'RS'. In this form, SAP populates the segment E1EDKA1 with RS partner functions.
You may also want to check PERFORM fill_e1edka1_all (for BK) and PERFORM fill_e1edka1_fd as well.
Regards,
Ferry Lianto