Changing sales office in sales office using save_document user exit
Hi,
My requirement is to change the sales office to 109 based on some conditions.
Here i am using FORM USEREXIT_SAVE_DOCUMENT user exit in the sales order to do it.
but it is not taking this value .
Can any one suggest me any other place i.e. user exit where we can change sales office depending on some conditions.
Thanks & regards
Manjari.
You have to use userexit 'USEREXIT_SAVE_DOCUMENT_PREPARE' because when exit 'USEREXIT_SAVE_DOCUMENT' is called all the order data has already been submitted into update task. So if you want to change data in the order and have it saved with it you need to use 'USEREXIT_SAVE_DOCUMENT_PREPARE'.
Regards,
Michael
Similar Messages
-
Sales Area Determination in Stock Transfer Order - user exit
Dear SD gurus,
We have different distribution channels for inter company and intra company stock transfers; since only one sales area can be set in the configuration (setup STO -> shipping data for plants), we want to use a user exit to determine the sales area dynamically.
We have created an enhancement of function exit V02V0001 (Sales area determination for stock transport order); but the program flow doesn't seem to stop in this exit despite setting break-points.
Can someone suggest why this exit is not fired during runtime or if this can be used at all for our purpose.
Regards,
KCIs user exit required, as the sales area will be different. Incase of Intra company stock transfer the process will be as under:
Create Purchase Order (ME21N)
Create Delivery in background (VL04, VL10a, VL10C, etc)
Change Delivery for picking / packing & PGI (VL02n)
Create Billing Document (VF01)
Assumption: Stock Transfer configuration is in place. Assistance can be taken from SAP Best Practices in help.sap.com
Incase of Inter-company, the process will be as under:
Create Sales Order (VA01)
Create Delivery (VL01N, etc)
Change Delivery (VL02N)
Create Billing Document (VF01)
Assumption: Configuration is in place. Assistance can be taken from SAP Best Practices in help.sap.com
Regards,
Rajesh Banka -
As01 transaction using substitution user exit populate classificaion
Hi all,
I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI from the values maintained in Ztable.
I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).
For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
The present rule U210 is not working for classification key.
Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
regards
Rajani YeluriIn the user exit documentation, it doesn't say anything about this exit being used for validation, therefore, it probably shouldn't be used as a validation routine, especially if its not being trigger at every PAI.
<i>FU EXIT_SAPLAISA_001
Short text
Assign Inventory Number
Functionality
Using this user exit, it is possible to assign an inventory number when you create a new asset master record.
Notes
In the user exit, it is absolutely forbidden to use a statement that leads to an update or removal of database changes. Examples of such statements are:
'Commit Work' , 'Rollback Work' or call of function module 'DB_COMMIT'.
Parameter
I_ANLA
E_INVNR
Exceptions
Function group
XAIS</i>
Regards,
Rich Heilman -
How to use/activate user exits
Hi all,
i wish to use user exit COZF0001...
however i have no experience how to do it. do i need an ABAPer or other consultant to do it or can i just activate it and make it work with minimal instructions?
kindly give procedure/overview how to activate/use user exits.
thanks in advanceHi Ramesh,
Go to transaction CMOD . Create a project called ZVA01. Choose the Enhancement assign radio button and press the Change button. In the first column enter COZF0001.
Note that an enhancement can only be used in 1 project. If the enhancement is already in use, and error message will be displayed
Click on Save . Go to Components. You can now see that enhancement uses the user exit EXIT_SAPLCOZF_001. Double click on the exit and add your code.
Activate the include program. Go back to CMOD and activate the project.
-- Shivaji -
Can we add additional fields in work center creation using any user exit ?
Hi,
is there any user exit using which we can have some tab and fields such that we can add/ update the equipment to wotk center in CR01 ?
regards,
madhu kiranhi,
requirement is can i get the additional fields like equipment and asset in the work center creation ?
i would like to maintain these against a work center
and using any user exit can i add additional fields ?
regards,
madhu kiran -
Sales order forceful completion using the USER-EXIT
Hi all,
We have a requirement as follows: As soon as the sales order is created a smartform should get triggered. the configurations are done in nace. It is working fine. But in our case we dont enter the PO number in the sales order this will show an incompletion log throwing a warning message. So we need to do modification in the user exit MV45AFZZ for the forceful completion of the sales order
This is to be done for the order type Zxxx. As i have not worked in the userexits before can anyone help me with the code.
Thanks and Regards
venu.mulaparthiHi,
Try this..
Create a new incompletion procedure in SPRO without that PO number field..
In the user exit USEREXIT_SAVE_DOCUMENT_PREPARE in the include MV45AFZZ..
IF VBAK-AUART = 'Zxxx'.
* Switch the incompletion procedure.
TVAK-FEHGR = 'ZZ'. " New incompletion procedure..
* Then call the function module with the new incompletion procedure..
* I believe the function module name RV_CHECK_DOCUMENT.
* Or check RV*check*document in SE37..
* This will make sure the sales order to recognize
* the new incompletion procedure..
ENDIF.
Thanks
Naren -
To populate condition in the sale order or a scenario in the USER Exit
Hi Experts,
I want to write the code in the USER EXIT to add a condition type in the Sale order when the ship-to-party address is changed in the transaction level from the address maintained in the Master data,
So can anyone let me know is there any function module or how will i populate condition type.
I found that the internal table XKOMV contains all the condition types.
Thanks,
Premi saw the answer provided by u, i was pleased to find the answered way, so i writing back to u regarding my requirements.
my requirement.
while creating sale order, before entering the screen 4001 where we enter sold to party and material and order quantity, i need to populate these fields from my exit.
i am able to populate the sold to party field from the exist EXIT_SAPMV45A_002 and
INCLUDE ZXVVAU04 .
in the same fashion i need to populate my material filed.
how do i do it -
How to use MV45FZZ user-exits to validate PONumber
I want to detect duplicate PO numbers on sales orders. On VA01 I want to check if for the Sold-to-party is there already an Order with the some PONumber. Code to detect this is simple. The problem is what user-exit routine I should use (and how) in report MV45AFZZ.
There is a form called USEREXIT_MOVE_FIELD_TO_VBKD but how do I know in this routine that the screen field POOrder was changed, and not any other? I would like to make the check only once, after changing VBKD-BSTKD or XVBAK-KUNNR, not to any screen-field change.
Can someone give an help on this user-exit usage?
Thanksyes. I didn't knew there were standard validations for duplicate POs
Where do I configure thais? in Sales Document types?
Thanks -
Changing of Exchange Rate in MIGO via BADI/User Exit
Hi gurus, I am facing a scenario where I have to amend the exchange rate before posting of GRS. Is there a BADI or User Exit that I could use?
Hi,
While creating Purchase order we mention the Exchange Rate there in Header Detail for Delivery/Invoice Tab. To do excahange rate before GR means Change the exchange rate in PO.B ecause in mIGO the excahnge rate will be taken from PO. u can change the exchange rate in Me21n or in OB08.I f the excahange rate selectedas fixed you can't change the excahange rate keep as it is and fix the indactor as fixed. Hope it works. Thanking you. -
JOB_OPEN cannot be used in user exit, what can I do to raise a job?
Dear Experts,
We need to setup a job in user exit ZXM06U43 (when saving purchase order), but JOB_OPEN has 'COMMIT WORK' in it, which is not acceptable in user exit.
Do you have another method to walk around?
Thank you for your comments.
Joanne WuHi,
Try this..
Create a RFC FM...
In the include ZXM06U43...Call the function module in background task..
CALL FUNCTION 'Z_RFC_TEST' IN BACKGROUND TASK
EXPORT.
In that RFC function module use JOB_OPEN Function module...
Hope this helps..
THanks,
Naren -
MC94 - How to use the User exit EXIT_SAPMMCP6_002 to develop custom macros
Were implementing macros with the user exit EXIT_SAPMMCP6_002, but we see that the parameter table T_TAB doesnt contain all lines and columns viewed in the grid of transaction MC94 (Change Plan Consistent Planning).
Nevertheless, files and columns that are contained, arent shown in the order that they are visualized in the screen (MC94 - program SAPLMCPA screen 707).
Does somebody know how to update the grid visualized in that screen?
Thanks in advance for any help!Hi,
Have you any luck with this yet. I am actually looking to do something similar but on the planning level.
To get the detailed level, you can try the following:
get the lines for this macro
CLEAR I_LINES. REFRESH I_LINES.
LOOP AT T_LINES WHERE KRIT1 = I_STRAT-AKT_PLOBJ
AND FLGIS IS INITIAL
AND STRUL = 'X'.
I_LINES = T_LINES.
APPEND I_LINES.
ENDLOOP.
get columns for this macro
LOOP AT T_COLS.
LOOP AT I_LINES.
READ TABLE T_TAB WITH KEY Z = I_LINES-LINE
C = T_COLS-COLUMN
BINARY SEARCH.
IF SY-SUBRC EQ 0.
I_COLS = T_COLS.
APPEND I_COLS.
ENDIF.
ENDLOOP.
ENDLOOP.
SORT I_COLS.
DELETE ADJACENT DUPLICATES FROM I_COLS.
this should pull the values that are visually seen on the screen.
What i need is the values for ALL levels? I cant seem to figure this out.
Anyways, lemme know if the above was helpful. -
How to know the tcodes/programs that uses a user exit
Hi, anybody knows given the user exit (function module) how will i know the tcodes/programs that uses it? the where used list doesn't return any.
Hi,
You will find the enhancement for the exit EXIT_SAPLCOZF_001 ,go to se11>enetr MODSAP Table name in Memeber postion you can enter your function module name EXIT_SAPLCOZF_001>now you will get the enhancement COZF0001 (trx SMOD)
yOU will find whre the exit is called from the t.code Try this method:
All exits have the program name as part of their own name, for eg, EXIT_SAPLCOZF_001. In this, SAPLCOZF is the program that the exit is called in, you can use this program name and search for transaction codes related to the program (in SE93).
The only hitch in the above method is when the program name is a function group program name (SAPL*), in which case you will have to drill down into the function group to find the corresponding tcode.
Or
Go to SMOD transaction.
Enter the Enhancement Name in SMOD.
Open in Display mode.
Now get the package name from the window.
Now go to transaction SE80.
Choose package from the listbox
and enter the package name.
Now it will display the list of Transactions associated with the project.
Regards
Kiran Sure -
As01 transaction using substitution user exit populate classificaion key
Hi all,
I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI from the values maintained in Ztable.
I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).
For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
The present rule U210 is not working for classification key.
Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
regards
Rajani YeluriHi,
Did you find a solution. I'm just looking for the same thing.
best regards.. -
As01 using substitution user exit populate classificaion key(ANLA-VMGLI)
Hi all,
I have a requirement, where in using the substitution user exit rule U210, I need to populate fields ANLB-NDPER, ANLB-NDJAR and ALNA-VMGLI from the values maintained in Ztable.
I am able to overwrite the SAP standard values for the fields ANLB-NDPER and ANLB-NDJAR. But not able to populate the filed VMGLI(Classification key).
For some asset classes, the classification key is not mandatory and the user without giving the value in that field if save the transaction, then I need to populate the value of VMGLI with the ztable value.
The present rule U210 is not working for classification key.
Please suggest, is there any other user exit for the scenario where we can populate VBGLI field.
regards
Rajani YeluriHi Balaji,
We have the same problem.
Have you discovered how to make this exit works?
We will really apreciate your help.
Thanks a lot,
Ivan Spellmeier -
Hi.
In 4.6 when I had a FM (e.g. EXIT_SAPLE10M_001), when I did where used I got the source when this exit was called ( if showed as call customer-function '10' )
But In ECC 6.0 this option is no longer valid? Where used option brings me no results.
Anyone knows how this can be overiden?
Using modsap table & smod does not help since I do get the FM name but stilll the "where used" isn't working.
Thanks
Ariel Fisher> In 4.6 when I had a FM (e.g. EXIT_SAPLE10M_001), when I did where used I got the source when this exit was called ( if showed as call customer-function '10' )
>
> But In ECC 6.0 this option is no longer valid? Where used option brings me no results.
>
> Anyone knows how this can be overiden?
>
> * Using modsap table & smod does not help since I do get the FM name but stilll the "where used" isn't working.
>
I don't know why this is not working, but the Exit function is still valid.
in the main program SAPLE10M the Exit function is used.
i just searched for CALL CUSTOMETR-FUNCTION globally inside the program SAPLE10M(Function group main program) i got the below one.
* Call user-exit...
CALL CUSTOMER-FUNCTION '001'
EXPORTING
x_v_eger = x_v_eger
x_etyp = x_etyp
x_te271 = x_te271
IMPORTING
y_wechsel = y_wechsel
y_bglkenn = y_bglkenn
y_bglform = y_bglform.
Maybe you are looking for
-
How do I create multiple TEBs with one submit button on one page in Captivate 7
I've read other posts on this topic (which refer primarily to earlier versions of Captivate) and am still at a loss as to how to put multiple text entry boxes on a page with one submit button. Here's my scenario: I am creating test questions. Each te
-
i want to be able to use the app asap - all i need to do is extract some pages from a document. the thing just keeps quitting. i installed it last night, have uninstalled it and reinstalled, and still no joy. i have also installed the reader version
-
Getting my indesign files to look what I'm out putting from Photoshop
Has anyone printed Blurb books using Indesign. There is supposedly this PDF work flow for Blurb books when using Indesign for Blurb books. Yet the printers that Blurb uses are best suited for SRGB like most labs.. Blurb strongly recommend one convert
-
Itunes refuses to import certain tracks
Hello everyone. ill cut to the chase: iTunes refuses to import random songs in my collection that it used to play before. I moved my music off of an external and no matter what i try be it adding the tracks to the "automaticly add to itunes" dragging
-
Rented movie and now its gone. I did not watch it nor was it expired. How do I recover it or get my money ack for it!