User exit for IDOC in INVOICE
Hi all,
I need to add a value in a custom IDOC segment for INVOICE. The IDOC basic type used is INVOIC02. Is there any user exit which I can use to populate the IDOC data? Any help will be greatly appreciated.
Thanks,
Lalyn
Hi Lalyn,
I do not have an exact code for this.
But just go through the following code, where we are doing some validations in the segments.
Code below this line was to exclude ZRTN materials for which Subtotal 2 (KZWI2) is zero. And,
this is done for billing types:
ZEXP,
ZXAD,
ZXDR,
ZXL2,
ZXG2,
ZXPT.
IF INT_EDIDD-SEGNAM = 'E1EDS01'.
ZE1EDS01 = INT_EDIDD-SDATA.
IF ZE1EDS01-SUMID = '001'.
Start deleting when on 1st E1EDS01 segment
DESCRIBE TABLE INT_EDIDD LINES POS.
LOOP AT XTVBDPR.
CLEAR MARA.
SELECT SINGLE MTART MATKL FROM MARA INTO "DV2K920646
(MARA-MTART,MARA-MATKL) "DV2K920646
WHERE MATNR = XTVBDPR-MATNR. " Find material type MTART
IF XVBDKR-FKART EQ 'ZEXP' OR XVBDKR-FKART EQ 'ZXL2' OR
XVBDKR-FKART EQ 'ZXAD' OR XVBDKR-FKART EQ 'ZXG2' OR
XVBDKR-FKART EQ 'ZXDR' OR XVBDKR-FKART EQ 'ZXPT'.
IF MARA-MTART = 'ZRTN' AND XTVBDPR-KZWI2 EQ 0
AND MARA-MATKL <> 'KEGS DM'. "DV2K920646
MOVE XTVBDPR-POSNR TO POSNRS-POSNR.
APPEND POSNRS. " Store ZRTNs to be deleted
ENDIF.
ENDIF.
ENDLOOP.
DESCRIBE TABLE POSNRS LINES COUNT.
Reduce the number of line items by the number of them to be deleted
ZE1EDS01-SUMME = ZE1EDS01-SUMME - COUNT.
SHIFT ZE1EDS01-SUMME LEFT DELETING LEADING SPACE.
INT_EDIDD-SDATA = ZE1EDS01.
MODIFY INT_EDIDD INDEX POS TRANSPORTING SDATA.
LOOP AT INT_EDIDD INTO IEDIDD. " Loop and delete if in POSNRS
IF IEDIDD-SEGNAM = 'E1EDP01' OR IEDIDD-SEGNAM = 'E1EDS01'.
CLEAR DELETE_FLAG.
Reset delete_flag when on next line item or done with all
ENDIF.
IF IEDIDD-SEGNAM = 'E1EDP01'.
ZE1EDP01 = IEDIDD-SDATA.
READ TABLE POSNRS WITH KEY POSNR = ZE1EDP01-POSEX.
IF SY-SUBRC EQ 0.
DELETE_FLAG = 'X'.
Set delete_flag if the line item is to be deleted
ENDIF.
ENDIF.
IF DELETE_FLAG = 'X'. " Delete the line item fully
DELETE INT_EDIDD.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
At this function module, you have to create an include and write your code.
But remember, before that you have to extend your basic type.
Hope it will help you.
sailesh
Similar Messages
-
USER EXIT FOR CSAVING AN INVOICE IN SD
wats the user exit for saving an invoice in SD?
Hi,
Check this refence for your query :
Re: user exit/customer exit/BADI at the time /after saving SD invoice
Reward if helpful,
Regards,
Esha Raj -
User Exit for Enter / post invoice against the order without goods receipt
Hi,
My requirement is to enter or post the invoice against the Purchase order without goods receipt.
Need to an User Exit for this.
Thanks in Advance!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!User exits available are:
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
user exit when PGI is done
Reward if useful. -
Regarding user exit for FB60 Duplicate invoices
hi experts,
I want to fnd out how to check Duplicate invoices in fb60 and disallows posting.
Any kind soul can help?
Thnaq.Transaction Code - FB60 Enter Incoming Invoices
Exit Name Description
RFAVIS01 Customer Exit for Changing Payment Advice Segment Text
RFEPOS00 Line item display: Checking of selection conditions
RFKORIEX Automatic correspondence
SAPLF051 Workflow for FI (pre-capture, release for payment)
F050S001 FIDCMT, FIDCC1, FIDCC2: Edit user-defined IDoc segment
F050S002 FIDCC1: Change IDoc/do not send
F050S003 FIDCC2: Change IDoc/do not send
F050S004 FIDCMT, FIDCC1, FIDCC2: Change outbound IDoc/do not send
F050S005 FIDCMT, FIDCC1, FIDCC2 Inbound IDoc: Change FI document
F050S006 FI Outgoing IDoc: Reset Clearing in FI Document
F050S007 FIDCCH Outbound: Influence on IDoc for Document Change
F180A001 Balance Sheet Adjustment
FARC0002 Additional Checks for Archiving MM Vendor Master Data
FEDI0001 Function Exits for EDI in FI
No of Exits: 14
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal -
User Exit for Incoming Excise invoice capture(MIGO)-clarification
Hi all,
We are using mySAP ECC 5.0 version with CIN Configuration made. In this, if Excise Duty value is zero, then excise invoice pop-up should not come. But the system asks for it, and the user has to manually change the excise action as 'No Excise Entry'. To avoid this, we have a idea of using some user exit to do this automatically.
We have added the following source code in the user exit 'J_1I7_MIGO_DEFAULT'
IF CS_EXHEAD-TOTAL_BED = 0.
CS_EXHEAD-EXCISE_ACTION = '06'.
endif.
But, irrespective of the excise duty value(CS_EXHEAD-Total_BED) system determines the action as '06' i.e.'No excise entry.But still it asks for excise invoice also!!!
How to resolve this? Should some corrections should be made on this source code? or the option of 'pass values' needs to be selected in the user exit?
Suggest
GowthamHey,
Can you give the enhacement name from SMOD (MBCF0006) ?
-Kiran -
Hi,
For any outbound idoc, if the parameters of export/import contain EDIDC and EDIDD along with the table.
It is possible to extend the idoc and populate values?
As i don't have authroizations, i need to confirm whether an wmtcid03 idoc can be extended and values can be populated.
I found the user exit also.Check the Function Group <b>XLID</b>,you could find few where you can track EDIDC and EDIDD and do furter manipulation as needed.
~thomas. -
User exit for IDoc MBGMCR - BAPI_IDOC_INPUT1 - BAPI_GOODSMVT_CREATE
Hi Gurus,
I just want to ask if there is any user exit that I can use for this IDoc. My requirement is to check if thevalue from E1BP2017_GM_HEAD_01-REF_DOC_NO already exist in MKPF using XBLNR. If this reference document already exist, I need to raise and update the IDoc status into an error.
Thanks and best regards,
AndreHi,
Check the badi "LE_SHP_GOODSMOVEMENT", method "CHANGE_INPUT_HEADER_AND_ITEMS". Pass the errors in the structure CT_LOG.
Regards
Vinod -
When a credit memo is created an IDOC should be generated !
IS there any user exit where i can associate the idoc generation code when the credit memo is created?
if soo then what it is !
Edited by: Alvaro Tejada Galindo on Feb 19, 2008 5:52 PMJust create an output type for billing and condition record to trigger the output.
Regards,
John. -
User exit for IDOC inbound CREMAS
Hi experts,
I want to find a USER EXIT to change the value for vendor inbound idoc of message type CREMAS when create a new vendor or change a existing vendor. EXIT_SAPLKD02_001 is a function module can be enhanced but it cannot be called when I debug in WE19. The segment of IDOC is not extended by customazing field.
Can anyone tell me what user exit is for IDOC I can use to change the data for vendor when inbound idoc receive?Hi panzhijun,
please check this link
http://forums.sdn.sap.com/thread.jspa?threadID=1659323
An Expert V.V.Reddy is exactly discussing about your issue on extending the FM in a Include: LKD02F01,
just have a look on this and go throw completely so u may get some solutions .
This is how somewhat i can help you , If i get any further details will let u know .
BR,
Lakshmi Rajkumar. -
User Exit for Idoc being posted through ACC_DOCUMENT
Hi Experts!!
We have an inbound interface to post FI document using message type ACC_DOCUMENT. Now, we need to influence the idoc before posting. In detail, we need to change a particular field in the header and then only post it. I tried with EXIT_SAPLF050_008. But that was not being updated. Is this user exit only for a few message types like FIDCMT, FIDCC1, FIDCC2?
If yes, which user exits can be used to influence the idoc before posting?
Kindly help me out.
Thanks a lot in advance.Hi ,
chk with these exits:
SIDOC001 -> fm EXIT_SAPLEDI1_001
SIDOC002 -> fms
EXIT_SAPLEDI6_001
EXIT_SAPLEDI6_002
EXIT_SAPLEDI6_003
hope it helps..
Regards,
Deeba -
Hello all!
I'm trying to send a message with the status of an IDoc that has been processed, but I can't find an exit right after the status of the IDoc has been set, do you have any idea on what can I do for this?
Regards!This is the exit where we have the control of setting idoc status. If there no scope of this idoc status.
Then try to find out an exit which will be triggered before this exit with idoc status ( with value ). Then export this to memory and get back the same from memory in Vijay's suggested exit.
Also if you could able to find the exit after THIS exit you won't have option to set custom idoc status.
Regds
Manohar -
USER EXIT FOR IDOC CREATION AND TRIGGER
I needed a user exit in which I could call my function module .The requirement is that whenever a sales order is created or changed ,on saving of the sales order I need to trigger an IDOC .Inside my function module I plan to use the MASTER_IDOC_DISTRIBUTE
Can anyone tell me if the above logic can work and please tell me the name of the user exit which I can use?Hi
Instead of User exit, you can think of using SAP Standard Output type functionality.
Ask your functional consultant to create a Output type with Medium 6 and do the necessary outbound configuration in the Partner profile WE20 transaciton.
Regards
Madhan D
Edited by: Madhan Doraikannan on Dec 10, 2008 10:49 AM -
User exit for idoc extension for material master (matmas05)
Hello all,
I have 10 custom fields added to anl idoc of basic type matmas05.
i created a new segment under parent segment E1MARA1
Now i want to find out the user exit where in i can write a code to read the data of this segment and populate into the data base table.
Can anybody provide me with the name of the user exit?
Regards,
RoshaniCheck enhancement MGV00001 in SMOD.
Exit Fm is EXIT_SAPLMV01_002
Regards,
Naimesh Patel -
Hi friends,
I am working on P.O. to S.O scenario using ale idoc. While importing the P.O idoc i need to do some changes in the values coming from P.O. idoc so for that I need to use some user exit for idoc.
Please let me know is it possible and if yes which is user exit suitable for this purpose.
Thanks & Regards,
Brijesh Sonithe exit is EXIT_SAPLVEDA_001.
thanks and regards,
siri -
Extended Idoc - User exit for delivery VL01 and Invoice VF01
Hi Experts,
We are developing Extended Idoc for order - cash cycle.The extended Idoc contains 4 extra fields.
I want to know the User exits where i can populate the extended segment field values for VL01 and VF01 transactions.HI
exits available for VL01.
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
V53W0001 User exits for creating picking waves
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53C0001 Rough workload calculation in time per item
V50S0001 User Exits for Delivery Processing
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50R0002 Collective processing for delivery creation
V50R0001 Collective processing for delivery creation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50PSTAT Delivery: Item Status Calculation
V02V0004 User Exit for Staging Area Determination (Item)
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0002 User exit for storage location determination
V02V0001 Sales area determination for stock transport order
For VF01..
Enhancement
V61A0001 Customer enhancement: Pricing
V60P0001 Data provision for additional fields for display in lists
V60A0001 Customer functions in the billing document
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V05I0001 User exits for billing index
SDVFX011 Userexit for the komkcv- and kompcv-structures
SDVFX010 User exit item table for the customer lines
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX001 User exit header line in delivery to accounting
J_3RSINV
Maybe you are looking for
-
Free sample sales - Control for Total Value
Dear all, In our sales free process we configured a condition type Z100 Net value and condition record maintained with Key Customer / Material / Plant Higher authority is maintaining teh condition reocrd for one day. 10000/ Fg123456 / h210 - 100 % 12
-
SAP Query output download to Excel
Hi All, Once I export/download Query Output to Excel the fields are not in the order of Actul Query output <u><i><b>Char fields are treated as Key fields and displayed Left side.</b></i></u> As it is a SAP Query where to keep this kind of setting
-
Troube getting hooked up at work place via ethernet. Can't get online.
I am trying to get hooked up at my job place, via ethernet. I need to know once I go into System Preference, and then network, what is the next step. I clicked ethernet 2 and then what should I do next, and what kind of info goes in there?
-
When I post my site using FTP iWeb duplicates the the address, for example if my URL is www.1234567.com iWeb publishes to http://www.1234567.com/www.1234567.com. How can i get it to publish without repeating the address?
-
i bought anastacia's "cowboy's & kisses" video from itunes and now it is gone, erased from my music library! it's not on the imac, or my ipad! where is it? i paid good money for it! these are tough times i want it back! i'm not going to pay for it ag