Application Development 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: 

EXIT_SAPLV50E_001 User Exit is not working for multiple plants case

Former Member
0 Kudos


Hi,

I have to update foreign trade data in Invoice during invoice creation using VF11. For that, I have written code in EXIT_SAPLV50E_001 and updated segal value. This functionality is working fine, if I have a single plant in an invoice. But customer has scenario where they can have multipl plants in an invoice.

For multiple plants in an invoice, this EXIT_SAPLV50E_001 is not called.

I am unable to find another better place where in I could place my code. Please help. Remember, case in multiple plants.

Will be rewarded.

Regards

Arpit

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

This exit is called at header level, ONCE to provide default values. Try to use an item level exit like EXIT_SAPLV50E_003 (or look for other exits of SMOD enhancement V50EPROP.

Regards,

Raymond

7 REPLIES 7

raymond_giuseppi
Active Contributor
0 Kudos

This exit is called at header level, ONCE to provide default values. Try to use an item level exit like EXIT_SAPLV50E_003 (or look for other exits of SMOD enhancement V50EPROP.

Regards,

Raymond

0 Kudos

Hi Raymond,

In EXIT_SAPLV50E_003 Exit, I can update lines of EIPO table values. But here, I have to update EIKP-SEGAL value, which is in C_EXPORT_HEADER_DATA-SEGAL. I also thought to use EXIT_SAPLV50E_003 but because of this reason, I raised a query.

Regards

Arpit

0 Kudos

(For a list of available exit : User Exits For Billing.)

The 003 exit allows to change EIPO-SEGAL for items, EIKP is header so only one or look for splitting rules ?

Regards,

Raymond

NB: I suppose you look for VF01 and not actually VF11 (deletion)

0 Kudos

Hi Raymond,

I have to update EIKP-SEGAL, not EIPO-SEGAL

0 Kudos

Yes but only a single value per invoice, not one per plant, nevertheless I don't think you will find an exit for that, and you may be forced to trick the system with field-symbols assignment to change a data already filled, so perform some where-used search on the exit FMs to find the main program variable that contains EIKP (function group V50E ?) But expect severe testing to perform if you are not lucky...

Regards,

Raymond

0 Kudos

Thanks Raymond!

I also tried to write my code after pressing SAVE button on VF01 transaction. Here, I wrote at FM RV_INVOICE_DOCUMENT_ADD using implicit enhancement. But here also, I am facing same issue. Please suggest some more options here apart from field-symbols. It may be very risky and processing may differ in case of different invoice types.

thangam_perumal
Contributor
0 Kudos

Hi Arpit,

               Please use below mentioned user exit in T-code VF11

he following user exits are available for tcode VF11

Exit Name           Description

SDVFX001            User exit header line in delivery to accounting

SDVFX002            User exit for A/R line in transfer to accounting

SDVFX003            User exit cash clearing in transfer to accounting

SDVFX004            User exit G/L line in transfer to accounting

SDVFX005            User exit reserves in transfer to accounting

SDVFX006            User exit tax line in transfer to accounting

SDVFX007            User exit: Billing plan during transfer to Accounting

SDVFX008            User exit: Processing of transfer structures SD-FI

SDVFX009            Billing doc. processing KIDONO (payment reference number)

SDVFX010            User exit item table for the customer lines

SDVFX011            Userexit for the komkcv- and kompcv-structures

V05I0001            User exits for billing index

V05N0001            User Exits for Printing Billing Docs. using POR Procedure

V60A0001            Customer functions in the billing document

V60P0001            Data provision for additional fields for display in lists

V61A0001            Customer enhancement: Pricing

J_3RSINV            Customer enhancement: Pricing

or You can use BADI

BADI_SD_SALES_BASIC

BADI_SD_TO_FM

BADI_SD_BILLING

Regards,

    Thangam.P