Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

adding qualifier ZH to E1EDKA1

Former Member
0 Likes
2,651

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,672

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

9 REPLIES 9
Read only

Former Member
0 Likes
1,672

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

Read only

0 Likes
1,672

seems functional consultant has done it:

KNVP - ZH exists

VBPA - ZH exists

EKPA - ZH exists

M.

Read only

0 Likes
1,672

It should save ,are you Passing correct partner function ?

Can i see ur code ?

Thanks

Seshu

Read only

0 Likes
1,672

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.

Read only

Former Member
0 Likes
1,672

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

Read only

0 Likes
1,672

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.

Read only

Former Member
0 Likes
1,672

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

Read only

0 Likes
1,672

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.

Read only

Former Member
0 Likes
1,673

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