Routine / User exit in SD to create an Accounting Document
Hi Everybody,
Anybody please tell me the Routine / User exit in SD to create Accounting Document from an SD billing document.
Also need the user exit that will split the accounting document into as many documents as required.
The problem I am facing is like the splitter program fails to copy the document header text into all the accounting documents produced as a result of the splitter program. Appreciate your help.
Thanks,
Neethu.
Hi Neethu,
Sorry, I don't understand very well your requirements.
Do you have problems with splitting in billing? If yes, see SAP Note 11162 - Invoice split criteria in billing document and search posts with the string ZUKRI.
To change data in the interface to FI from billing, see Note 301077 - User exits for the interface to accounting, but I think that you cannot create new FI documents with these enhancements.
Other question, see SAP Note 36353 - AC interface: Summarizing FI documents, perhaps your problem can be solved with the advices of this note.
I hope this helps you
Regards
Eduardo
Similar Messages
-
The user exit on the sap post the account document
Dear all.
I use the t-code mb01 or migo to receipt goods for purchase order.When I execute post or save,the sap generate the material document and the account document.The account documents have two item with account 12110000 and account 12010000.And I know this two account was configure in the t-code omwb.
Now my company have a new requirement:
When the sap generate the account documents,I need to write some code to do some judgement and change the account 12110000 to account 35510000 or other account.The logic of the code was complex and it's impossible to do in sap standard configure.So I want to find the user exit on the sap post the account document.In the user exit I would write some code to do some judgement and change the account 12110000 to account 35510000 or other account.
But I can't found the user exit.So I need the experts to give me some reference.
Regard
YodaHi,
You may use ZXF48U01 of EXIT_SAPLF048_001 of enhancement F180A001 for the same.
Please note that control comes here for no of transactions hence you need to specifically check for sy-tcode, for which your 'exit' logic needs o be executed.
I hope this helps,
Regards
Raju Chitale -
User-Exit / Badi for ML81n (create service entry sheet)
Dear experts,
I am looking for a User-Exit / Badi for ML81n (create service entry sheet), which will enable me to compare its date with the referenced PO's item's delivery-date, befor saving , and send an error message (with no update) if the check is not OK.
Remark : I have tried MB_DOCUMENT_BADI but with no success because you can't send an error message from it.
Thank you
Yaacovhi check below thread
User-Exit for Service Entry Sheet via ML81N?
regards
vijay -
Can i know the user exits which should trigger while saving billing docu
hi,
please can u help me to find out user exits which should trigger while saving billing documents.A couple years ago I downloaded this program, I think from SAPFANS. I don't take any credit for it...Not sure who originally wrote it. Just type in the t-code and hit execute.
*& Report name : Identify and Drill-Down to SAP User Exits. *
*& Program name : ZZ_FIND_USER_EXITS *
REPORT ZZ_FIND_USER_EXITS
NO STANDARD PAGE HEADING
LINE-SIZE 132
LINE-COUNT 65
MESSAGE-ID MM.
D A T A D E F I N I T I O N *
TABLES : TSTC, " SAP Transaction Codes
TADIR, " Directory of Repository Objects
MODSAPT, " SAP Enhancements - Short Texts
MODACT, " Modifications
TRDIR, " System Table TRDIR
TFDIR, " Function Module
ENLFDIR, " Additional Attributes for Function Modules
TSTCT. " Transaction Code Texts
S E L E C T I O N S C R E E N *
PARAMETERS : P_TCODE LIKE TSTC-TCODE OBLIGATORY.
I N T E R N A L S T R U C T U R E S & T A B L E S *
DATA : GT_TADIR LIKE TADIR OCCURS 0 WITH HEADER LINE.
V A R I A B L E S *
DATA :
GV_FIELD1(30) TYPE C,
GV_DEVCLASS LIKE TADIR-DEVCLASS.
C O N S T A N T S *
CONSTANTS:
GC_F LIKE TRDIR-SUBC VALUE 'F',
GC_R3TR LIKE TADIR-PGMID VALUE 'R3TR',
GC_FUGR LIKE TADIR-OBJECT VALUE 'FUGR',
GC_SMOD LIKE TADIR-OBJECT VALUE 'SMOD',
GC_PROG LIKE TADIR-OBJECT VALUE 'PROG'.
R A N G E S *
RANGES:
GR_VKORK FOR WKBP-VKORG.
E V E N T P R O C E S S I N G *
INITIALIZATION.
AT SELECTION-SCREEN.
SELECT SINGLE PGMNA
INTO TSTC-PGMNA
FROM TSTC
WHERE TCODE = P_TCODE.
IF SY-SUBRC <> 0.
MESSAGE E899(MM)
WITH TEXT-E01 " Input Transaction Code is Invalid.
TEXT-E02. " Please Correct !!
ENDIF.
SELECT SINGLE TTEXT
INTO TSTCT-TTEXT
FROM TSTCT
WHERE SPRSL = SY-LANGU
AND TCODE = P_TCODE.
START-OF-SELECTION.
CLEAR GV_DEVCLASS.
SELECT SINGLE DEVCLASS
INTO GV_DEVCLASS
FROM TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_PROG
AND OBJ_NAME = TSTC-PGMNA.
IF SY-SUBRC <> 0.
SELECT SINGLE SUBC
INTO TRDIR-SUBC
FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC = GC_F. " Function Group
SELECT SINGLE FUNCNAME
INTO TFDIR-FUNCNAME
FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE AREA
INTO ENLFDIR-AREA
FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
CLEAR GV_DEVCLASS.
SELECT SINGLE DEVCLASS
INTO GV_DEVCLASS
FROM TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_FUGR
AND OBJ_NAME = ENLFDIR-AREA.
ENDIF.
ENDIF.
SELECT *
FROM TADIR
INTO TABLE GT_TADIR
WHERE PGMID = GC_R3TR
AND OBJECT = GC_SMOD
AND DEVCLASS = GV_DEVCLASS.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(36) TSTCT-TTEXT.
SKIP.
IF NOT GT_TADIR[] IS INITIAL.
WRITE:/(95) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Exit Name',
21 SY-VLINE ,
24 'Description',
95 SY-VLINE.
WRITE:/(95) SY-ULINE.
SORT GT_TADIR BY OBJ_NAME.
LOOP AT GT_TADIR.
SELECT SINGLE MODTEXT
INTO MODSAPT-MODTEXT
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = GT_TADIR-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/01 SY-VLINE,
02 GT_TADIR-OBJ_NAME HOTSPOT ON,
21 SY-VLINE,
22 MODSAPT-MODTEXT,
95 SY-VLINE.
ENDLOOP.
WRITE:/(95) SY-ULINE.
DESCRIBE TABLE GT_TADIR.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , SY-TFILL.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
AT LINE-SELECTION.
GET CURSOR FIELD GV_FIELD1.
IF GV_FIELD1(8) = 'GT_TADIR'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
ELSE.
MESSAGE I899(MM)
WITH TEXT-I01 " Click on the Exit Name to Drill-Down
TEXT-I02. " to SAP Enhancement Information.
ENDIF.
END-OF-SELECTION.
TOP-OF-PAGE.
S U B R O U T I N E S *
E N D O F R E P O R T **************************************** -
User exit for VF01(after g/l account is determined).
I have requirement in which i have to throw an error message in VF01
In this i need a user exit in which i can access the G/L account number and on basis of that i need to display error message.But i am not able to find out a user exit where i can access g/l account determined by sap std code.
The requirement is to put a validation on WBS element based on G/l account and stop billing document creation in addition to accounting doc creation.hi ,
Exit Name Description
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
check these exits..
regards,
venkat. -
How to create an Accounting Document by calling BAPI
Hai friends ,
please tell me how to call this BAPI and fulfill all the parameters .. Please help me , I dont know the head and tail of it ...
create an Accounting Document by calling BAPI BAPI_ACC_DOCUMENT_POST
Below is the step to fill the parameters for BAPI:
Enter company code, invoice no, invoice date, document type, header text into DOCUMENTHEADER
Enter customer, item text, company code, payment term into ACCOUNTRECEIVABLE
Enter offset account, company code, document type, item text into ACCOUNTGL
Enter currency type u201800u2019, currency, exchange rate, amount into CURRENCYAMOUNT. Please note there will be two rows in this table, one positive amount and one negative amount
Call the BAPI to create the AR document. If p_check is checked, call the BAPI only without COMMIT and then do the message processing
If p_check is initial, COMMIT the data to the database tables.
Check the RETURN table after each BAPI, if no u2018Eu2019 message type found, output the document no. Otherwise, output the error messge to the screen with the message type u2018Eu2019.
thanks in advance ...Hi,
Check the link
http://www.sapbrainsonline.com/sapinfo/tutorial.php?artid=617
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi_acc_document_post-error-1973720
http://delaynomore.spaces.live.com/blog/cns!D2BFFB84EDFE4189!528.entry
http://sap4.com/wiki/index.php?title=BAPI_ACC_DOCUMENT_POST
http://www.sapfans.com
Anurodh -
Problem in creating an account document using BAPI_ACC_DOCUMENT_POST
Hi Experts,
I have a porblem while creating an account document from BAPI_ACC_DOCUMENT_POST.
The problem is acc document is geeting posted and I am getting an document number for that bapi, but its not getting saved to data base and I am getting the following error message
"Document 1900004327 3000 does not exist in fiscal year 2005
Message no. F5A397
System Response
The required document either does not exist in the fiscal year or is still being posted.
When the document is read, archived documents are also considered."
Please sugggest...
We are using ECC 6.0
Thanks,
Suma.Hi,
this means that the posting is not open...
try with 2008...
or else ask ur financial consultatto check, whether the 2005 is open or not.
u also try posting manually using FB01 with same entries u r using for this BAPI...so that u can track the error.
Also use BAPI_TRAACTION_COMMIT after bapi post.
check ur subsystem which u r passing for the BAPI..
wa_general-assetsubno = '0000'. Is it 3000 or 0000
Try using 0...
Edited by: Sumi Vasu on May 14, 2008 8:13 AM -
Cannot create an accounting document for year-end-closure
Good morning,
I am dealing with an urgent issue related to the year-end-closing.
The accounting document cannot be created because the account 9600700000 does not exist in standard chart of accounts.
The system wants to pick up an account which is used by the chart of accounts of the country CAGR. This is used for the analytical ledger at the end of the month.
When I compare it with another example which was posted correctly, I see that the account 9600700000 was used in the Special ledger.
Do you have any idea how to create the accounting document?
Thank you very much.
Kind regards,
LindaIssue solved
-
Creating an Accounting Document for Invoice
We cannot create an accounting document for Invoice.There is no problem in account determination procedure. I've tried to clear in VFX3, but gives me an error message that says "express document 'update was terminated' received from author.
After analysis the error being reported is:
"M2 012: Error determining posting period (info structure S010).Function module is MCV_STATISTICS_UPD_V1_INVOICE V1 NORMAL
Can you suggest how we can post/Release to Accounts?Hi Narendra
Go to T-code MCVV. In this case since the doc is not created it will not work.
Is there an ST22 dump. if yes put a break point there.
Check SM13 and you can see the here where the update fails. Apply break point there.
Go to MC26 and enter S010 and check if any update rules exisit. in one of the formulas you need to put a break point.then go back to VF01 and then before you hit the save enter /h in the command box to go into debug mode.
Once in debug mode Follow the menu path Setings--->update debug on/off.Debug and see why the update is failing.
Thanks -
User-Exit or BAdI for creating a PR in MRP and in ENJOY
Dear experts,
I have the following problem:
PR are created in 2 ways in our system.
a) Manually in ENJOY transitions (ME53N)
b) via MRP run (MD04, MD15,...)
My request is to fill the field "vendor material number" in the PR with the value of the connected InfoSet record (if there is one).
For PRs that are created manually (a) ) I achieved this very easy by using the BAdI ME_PROCESS_REQ_CUST and the method PROCESS_ITEM. there I read the infoset record and I fill the fields as required.
Unfortunately the BAdi is not used when a PR is created by using MRP. I then tried to use the user exit SAPLMEWQ with its component EXIT_SAPLMEWQ_001. but as far as I can see this exit is not used in MRP as well.
Does anyone has a hint for me how I can achieve this functionality for the MRP run as well?
thanks!
AlexHi,
I have implemented the BAdi as you suggested.
In the method IF_EX_MD_CHANGE_MRP_DATA~CHANGE_MDPSX_EBAN I have set a breakpoint to see if I stop there if I create my PR.
I have starte a MRP run (report RMMRP000) and then I transferd my planned order to a PR in transaction MD15.
Unfortunately the PR is created without the program to stop.
what am I doing wrong? or am I missing something?
best regards, and thanks for any help!
Alex -
BADI / user-exit for MD02 while creating Schedule Lines
Hi experts,
I have a problem with implementation that I'm designing.
Current situation:
While MRP run (MD02 or background) new Schedule Lines are being created in reference to MM Scheduling Agreement.
Example:
04.08.2014
SchLne
5500000415/00010
200
04.08.2014
IndReq
VSFB
200-
05.08.2014
SchLne
5500000415/00010
300
05.08.2014
IndReq
VSFB
300-
2 Schedule Lines where created - for wuantity 200 and 300.
Target:
There is a need to create more than one Schedule Line per day during MRP run. According to example there should be for example 2 Schedule Lines in 04/08 and 3 Schedule Lines in 05/08 all for quantity = 100. There is possibility to change Schedule Lines in ME38, but there is a need to make a change during creatin while MRP run.
04.08.2014
IndReq
VSFB
200-
04.08.2014
SchLne
5500000415/00010 *
100
04.08.2014
SchLne
5500000415/00010 *
100
05.08.2014
IndReq
VSFB
300-
06.08.2014
SchLne
5500000415/00010 *
100
06.08.2014
SchLne
5500000415/00010 *
100
06.08.2014
SchLne
5500000415/00010 *
100
So instead of creating only 2 Schedule Lines, MRP should create 5.
I'm looking for a BADI/user-exit to edit Schedule Lines which are to be created by MRP and change it tn reference to the needs.
I found only one BADI:
BADI: MD_CHANGE_MRP_DATA
method: CHANGE_MDPSX_MDBS
The priblem is that this method is only being executed when there are Schedule Lines which already exist.
Maybe some of you have done some extension similar to mine? Please give me advice where I should put extension.
Thanks in advance!Dear Saravaran,
Thanks for the reply.
This will not suits to us. The provided BADI will works upto Posting the material document in transaction MIGO and it will not considered for the FI level entries.
Hope you could have understand mine requirement.
The requirement of mine is:
While doing the GR with ref to PO the material documnet will be posted and subsequently FI documnet will be generated in Background. While generating the FI document i need to manipulate the values for the G/L. So that the manipulated values will be flow into BKPF and BSEG tables.
Thanks.
Regards
Swamy -
[Request] Special user-exit we need during creating purchase order
Hi, Gurus!
We need to make specific User-Exit during creating Purchase order.
When user creates/change a PO document (ME21N/22N), SAP has to check the u2018CUSTOMERu2019 filed whether it is BLANK or NOT in Delivery Address tab at ITEM LEVEL.
If there is no value in that field, system will automatically input right value with useru2019s business logic.
Thatu2019s what we want to implement in the future.
If you have any solution or recommendation for this, Please help us.
I really appreciate your help in advance.
Best Rgds;
IanFor checking user exit - SMOD, you need to activate this exit via CMOD
For Badi - SE18 to check & SE19 to implement
Take the help of your abaper, give him / her your logic.
Hope the above answers your query.
Regards,
Vivek -
User exit to restrict WBS creating Network / PR
Hi All,
I want to know user Exit for WBS to restrict from creating Network or PR . Basically I want to restrict 1st & 2nd level of WBS from creating PR & my client not ready to use any manual method to restrict the same so I want to know any User Exit for the same .
ThanksHi,
Let me again take your queries point wise.
1. Is there any User exit available to restrict the network for only 1st & 2nd level WBS because my user are not ready for User status or for any manual process .
Answer:- Try
CNEX0009 (Material Components in Network)
CNEX0026
PPC00008 (Enhancement in adding and change in Components)
2. Is it possible to give only display authorization for only 1st & 2nd level WBS to some user ( only for those who creates Network in project structure)
Answer:- Yes, try executing SHD0 and create a transaction variant and later on do the changes like which field to make display only and which one to not.
OR
Ask Basis guys if they can help you out in this case.
3. Any way if I creates Network but not possible creates Activity or not possible to assign Material to that Activity ( to restricts Creates PR or Reservation through CJ20n )
Answer:- Try OPSG settings as I mentioned in my earlier post.
OR
Try in OPUA, OPUB and OPUC and search if you hide activity based on INFLUENCING FIELD on LEVELS of 1 or 2 only.
OR
Change Procurement Parameter Indicator of Res/Pur. req to NEVER
OR search in OPUK (Not sure if this can help you)
OR Try using user staus and set it to level 1 and 2 only. You need to use all Object Types of Network. There would be 3 object types related to network and then use the business transaction as Material Purchase Requisition. Set this to Forbidden and then set this user status to WBS/Network.
Have a look at the following screen shot.
I hope this may help you..!!
Regards,
Amit -
Which User-Exit is used to create IDOC when we release procee order?
My question is the IDOC (Basic type: LIOPRO01 and Message type: LIOPRO) is generate when user save the process order or when he release process order? I want to trigger IDOC when user release process order.
Is this the use exit i can use PPCO0007?hi
ty this user exit
EXIT_SAPLCOIH_002
Bharat Bhushan -
User exit to input Cost center in Billing document
Hi all,
My requirement is I need to get the cost center value in accounting document ( FB03)
Actually a contract is getting created and a billing document is generated and saved.
There is no cost center in contract creation screen (VA41)but it is visible in billing document(vf01) in grey mode.
Now my requiremnt is based on contract type ,distribution channel, sales org. and division I need to pick the cost center and should get display the value in accounting document(fb03).
For this do I need to go for user exit ? If yes then where should I write it ?
In Contract creation screen(VA41) or in the billing document screen? and plz guide me the program name and User exit,
or is there any other solution for this?
Plz answerI think you have to try from the Txn VF01 and the below are the BAdi and method details
Check the BAdi SD_CIN_LV60AU02 in the method EXCISE_INVOICE_CREATE check the importing parameter of the method
XVBRP Importing Type VBRP_TAB
Maybe you are looking for
-
Hello Experts, We are using E-Sourcing 5.1 with most of the out-of-the-box functionality. When creating an Auction, header section contains field "Company". This field appears as read only, and populates automatically based on the company defined in
-
Issue with Adobe After Effects in windows 8.1
This version is 11.0.0.378, when adding element the title bar will flash then all file menus will flash off and on
-
A whole row of the keyboard is not working!
Hi I bought a 27" iMac in january... and this week the keyboard has been acting strange! the row of (z x c v b n m , .) plus right shift and left arrow are not working!!! I found an old thread of this exact same thing, but it's archived and it was ne
-
hai Experts, I am having a ods and i am doing init from that ods to 5 cubes. and know want to delete a init request from one cube and do the init for that single cube. Can we do this for a singlle cube. Regards. Singh.
-
Samsung CLX-3305W wireless setup
I can't fathom why they make this so difficult, but there are other accounts online documenting similar problems to what I'm having, yet none with a resolution that works for me. - Drivers that came on the CD provided are installed - A Wireless Utili