Need to bypass Material substitution rule for SO created through RFC
Hello SAP Geniuses,
I have an external process that creates Sales orders using a RFC calling BAPI_SALESORDER_CREATEFROMDAT2.
My Users want to create orders for Materials that have substitution rules defined, but they want to bypass these rules when the Sales Orders are created from the external process. Other Users in the same Sales Organization and Distribution Channel need the substitution rule to sell these materials, so config cannot solve this.
I have already tried detecting when VBAP-MATNR NE VBAP-MATWA and calling BAPI_SALESORDER_CHANGE with the original MATNR, but the same substitution occurs in this FM.
Can anyone point me to a User Exit or BADI that can add flexibility to the Material Substitution mechanism in SD module?
Jack,
You are a genius!
These are the steps I followed to implement this idea:
1) VOFM -> Requirements -> Material determination -> New rule in the 800 series
2) Insert code into rule with SSCR key; Activate code; Activate rule.
3) Run utility program RV80HGEN to create rule in FG V61D -> SAPLV61D -> LV61DNNN -> RV61DNNN -> RV61D8xx
4) SPRO-> Sales and Distribution -> Basic Functions -> Maintain Prerequisites for Material Determination -> Maintain procedure -> select procedure -> double-click "Control data" -> enter rule into box "Requiremnt". Save.
5) SPRO-> Sales and Distribution -> Basic Functions -> Assign Procedures To Sales Document Types -> select doc type of interest -> enter procedure name into field "MatDeterm." for doc type. Save.
Similar Messages
-
Substitution Rule for Payment Term
Hi Expert,
I have to have Substitution for payment term the following criteria:
Company Code = '1000' AND Document Type = 'L1' AND Posting key = '14', then ... substitution bseg-zterm with certain payment term.
Problem: there is no substitution for bseg-zterm.
I read the post at http://sap.ittoolbox.com/groups/technical-functional/sap-acct/substitution-rule-for-payment-term-489202
and found that I need to apply a SAP note 42615 in order to enable the BSEG-ZTERM field in Substitution Rule for Payment Term, and after that run Program RGUGBR00 to regenerate the substitution.
But, problem again, our SAP is ECC 6.0, and the said SAP note is not applicable.
Kindly advise is there any other way that I can enable the bseg-zterm field at substituion.
Thanks,
sbmelHi
1. Go to SE16N and enter Table GB01
2. Enter &SAP_EDIT in the command prompt i..e the space where you type your T code and press enter
3. BCL TAB = BSEG and Field = ZTERM... Execute
4. Remove the X for the field BEXCLUDE.. SAVE....
5. Select this entry and menu Table > Transport > Include in tr request
6. Run RGUGBR00
Br, Ajay M -
Steps to create substitution rule for field BSEG-RECID
MIRO generates FI document. FI document has BSEG-RECID field. I need to apply substitution for BSEG-RECID depending on the value of the RSEG-GEBER field in MIRO. The substitution must be activated only if account to be booked is PL account in FI and derived MM document based on ZNPP PO type.
Field values are as follows:
RSEG-GEBER BSEG-RECID
No value No value
N N
D D
A A
Could anyone please let me know the steps to create the above substitution rule for the FI document
Thank YouHi,
You can do it as below:
Prerequisite : Select the document type for which you want check, here you have to select the BKPF-BLART = " " (Give the document type for the MIRO)
Substitution: Use the User exit with the logic as you said.
If you want you can use the user exit in both PREREQ & SUBSTITUTION. It will be applicable in your case
VVR -
Hi gurus,
Currently, my substitution rule for tcode 'F110', is not triggered. Because I need to change the value of BSEG-AUFNR (Order Number) to blank after F110. Can you tell me if there's a workaround?
Thanks gurus.Hi,
Can you please elaborate your scenario. As per my knowledge you can not edit already posted document by using substitution rule.
Once document is posted substitution is triggered and change that particular documnet, it will not go to any other document whcih is posted earlier and make any changes.
You can very well go and repost the document or change the document if it is possible.
Regards,
Anand Raichura -
Substitution rule for STO - changing business area.
Hello Experts,
We are transferring stock from one plant to another plant. Each plant is business area. We are doing stock transfer at some profit element of Rs. 250. Transfer is done from Business Area D002 to Business Area D001.
When we do outbound delivery, it posts following entry:
Stock A/c... Dr (Business Area D001) Rs.1250
To Stock A/c (Business Area D002) Rs.1000
To Profit on transfer (Business Area D001) Rs.250
However, I want to substitute business area for third line. I want that, business area D001 should be replaced with business area D002. However, there is some substitution rule for the same. Please tell me, how this substitution can be done.
Please help
DeepakWhat is your price control for your material for both plant ?
What is the process for your stock transfer ?
However, as of my knowledge, you can't achieve this accounting entry in standard.
See, if you are using MAP for material for both plant, then accounting entry will be
Stock A/C debit for plant D001
Stock A/C credit for plant D002.
If you are using standard price for material, then accounting entry will be
Stock A/C debit for plant D001
Stock A/C credit for plant D002
Price diff account credit or debit (as per the price difference for material price for both plant). -
Substitution rule for Business area in F-02
Dear SAP gurus,
The client has 2 plants at different locations. 2 plants are created as business areas.
Our requirement is, when users at bus area 1 are posting expenditure in f-02, the field business area should be automatically filled with '1000'(bus area 1). the users need not manually update the field Business area since they only operate and post in that location. Same functionality is needed at plant 2 also.
I came to know that this requirement can be fulfilled with Substitutions in SAP.
Can anybody please tell me how to write a substitution rule for the above requirement. Any other ideas are also welcome.
Please help me in this issue.
Thank you very much in advance.
Regards,
Vishnu
VST-ITPWHello,
You have to do two things.
1. First you write the substitution in GGB1
2. Assign the substituion to your comany code OBBH
In OBBH, write substituion at line item level of the document.
If the plant = A
Substitute business area with A
Check if there are any standard substitutions are available in your system
just for your reference.
Hope this resolves your problem.
Regards,
Ravi -
Trigger substitution rule for a background job
Hi all,
I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
but the substitution rule is not getting triggered as F110 runs a background job to post the document...
The substitution is active and the activation level is active all the time.
Could u please suggest how to get it triggered for a background job...Measuring External Processes
Use
The runtime analysis allows you to switch into work processes that are already running and to measure the runtime of dialogs running in them as though they were running in the current session. You can have up to ten external sessions, which may be of any type for example, dialog, update, or spool. This runtime analysis variant is ideal for monitoring long-running background jobs.
Filename and Directory
If you do not want to use the default filename and directory to store files, you can change them using the profile parameter abap/atrapath. If the profile parameter does not contain an entry at all, an error occurs when you start the runtime analysis. -
Table for Substitution rules for profit center
Can anybody help me with the table name for Substitution rules for profit centers ?
Thanks
SandeepHi
Check This tables
CEPC - Profit Center
CSKS - Cost Center
Ranga -
How to define Substitution rule for Businee area
Hi experts,
Could you please guide me to define substitution rule for Business are.
Below is the requiremnt :
I want to assign different business area for this cost centre.
While posting document in FB01, we are entering cost centre in line itme. Businee area is picking from cost centre master.
Example : Cost centre 11310 and businee area Y020.
Businee area Y020 is picking from cost centre 11310 while posting document.
I want to assign different business area for this cost centre.
For that I want to define substitution rule.
I have defined substitution rule and activated in comapany code but it is not working. Please guide me how to define Substitution rule for the same.
I have defined prerequisit as Comapny code = 2053 and Cost centre =11310 and transaction code = FB01 then
Substitute business area with Y045.
It is not working .
Please guide me where I did mistake and how to rectify the same.
Thanks in advance for your quick response and points will also assign for helpfull answer.
Regards,
AmarHi Paul,
Thaks for your reply.
Yes, you are correct. SAP is changing this back to BA from Cost centre.
Why can't we use Substitition for the above issue.
Then what is solution for my issue.Please suggest any alternative solution.
Thanks in advance for your help.
Regards,
Amar. -
Trigger a substitution rule for a background job
Hi all,
I ve written a subroutine in Substitution rules for FI in GGB1 tcode for F110 transaction to replace the section code (bseg-secco) while posting a fi document.
but the substitution rule is not getting triggered as F110 runs a background job to post the document...
Could u please suggest how to get it triggered for a background job...Hi,
Please mainatain another substitution rule.
PREREQUISTE : 40(POSTING KEY )=SPARE PARTS(gl) and 50(posting key )=Inventory write off
Sustitute : Dtype = VA
Regards
jabeen -
Substitution Rule for Assessment Cycle
Hii All,
Can anybody suggest how do i define substitution rule for Assessment Cycle??
Reg
UmeshI have created a assessment cycle thru KSU1 where i assigned SKF key , Thru SKF key i have to define allocation numbers with receiver cost centers but before that i have to set substitution rule for cycle.
All the common expenses booked under one common cost center
For eg. Expensed booked in GL series 3 - Common Cost Center
in Cycle - Assesment CEle start with 9
In FI - Common Exp GL start with 8
Above Example , when i run the cycle expenses will be allocated in 8 series with receivers cost center
Can ny1 suggest me how to do the process,how to define the rule
REg
Umesh -
Asset substitution rules for mass changes
Dear all,
I create worklist in order to use substitution rule for mass change.
But when running transaction AR31 I have following error message:
No administrator found for the task
Message no. 5W141
I found transaction OAWF but what must I do with this?
Thanks for your help.
DavidHi David,
In sight of resolving the error 5W141 when running the workflow in AR31, maybe following information can help.
1- Transaction OAWF: check if the responsible users are assigned to the workflow tasks
Menu path: Basic Functions
Assign tasks to agent
Correct worklist
Release worklist
Correct and release worklist
2- Then also check if the users are assigned to the workflow-tasks in the basis-component (transaction PFTC).
Menu path: Task type: TS - Standard task
Task : corresponding task
Also check the minimum customizing for workflow: SWU3 => automatic customizing
Maybe the following SAP Notes help you in addition:
127931 Workflow for Mass change in FI-AA from 40B on
322526 Analysis for workflow problems
152871 Release Upgrade considerations for workflow
Best regards,
Brigitte -
Dear experts,
We have an ECC environment in which an FI substitution rule is configured. It's working fine in the DEV client and it generated the
GBTAUFIB include. In the QAS client it generated an include with a different name, GBTIMFIB. This include that was generated is
different from the one generated in the DEV environment. For example, it doesn't the have the call to the substitution rule
exit was created.
How are these includes generated?
Thanks and best regards,
FernandoWe´re not really sure because the include code is different in both DEV and QAS. We're actually a support team analyzing this problem from which we have very little information.
We think it was transported, but we would still like to know are the proper steps to create this substitution rule.If you could point us in the right direction, we would certainly appreciate it.
Thanks agian,
Fernando -
FI substitution rule for Business area on New GL view(FAGLFLEXA)
Hi Gurus,
Need a your expertise guidance.
We have a requirement to substitute u2018Business areau2019 field on GL view(table u2013 FAGLFLEXA) for all FI postings.. I am trying to achieve this by OBBH substitution rule using user exit, Is this possible anyway??
I have already worked with my developer, but he is not getting any clue to write a logic in the user exits available in OBBH.. can anyone please guide us..
Actual requirement is to update u2018Business areau2019 field on all FI postings at new GL view for some of the company codes (not all), I am not sure if we can achieve it by activating document splitting by business area field.. we have document splitting active already by profit center and segmentu2026
Please guide me..
Many thanks in advance..
PrasadHI pampana,
If you add the Business area is document splitting char's with Mandatory check box
then reach and very line will update the business area value in Doc splitting.
But you allready have profit center as a doc splitting char's
If you want to Business area is new doc splitting char's then you need
go for NewGL migration.
Please refer the NewGL migration scenario 6, 7 for your case.
please check the link
http://wiki.sdn.sap.com/wiki/x/JghNCw (NewGL Migration Secnarios)
Regards
Madhu M -
CREATE SUBSTITUTION RULE FOR u0093COPYING LINE ITEM TEXT FOR LINE ITEMSu0094
Hi every body
When user post transactions in FB60 we have give the line item text, Suppose no.of lineitems are there in tht instnace my client asked to create the substitution rule to COPYING LINE ITEM TEXT FOR LINE ITEMS
pls tell me the processes how to create the substitution rule
Plz can anyboby help me out...
laxmi velagasorry,
link doesn't work:
here's the content:
you must add your rules at event 3 (complete document)
in an exit of ZGGBS000:
data htext type bseg-sgtxt.
*find
LOOP AT BOOL_DATA-BSEG INTO BSEG
WHERE bseg-sgtxt <> space.
move bseg-sgtxt to htext.
ENDLOOP.
*copy
LOOP AT BOOL_DATA-BSEG INTO BSEG
WHERE bseg-sgtxt = space.
move htext to bseg-sgtxt
*modify
MODIFY BOOL_DATA-BSEG FROM BSEG.^
ENDLOOP.
http://help.sap.com/saphelp_47x200/helpdata/en/5b/d231a843c611d182b30000e829fbfe/frameset.htm
please reward useful answers
thanks and regards
Andreas
Maybe you are looking for
-
Kerberos Configuration Manager for SQL Server is available
This thread describes the Microsoft Kerberos Configuration Manager diagnostic tool for SQL Server. This tool is available for download from the Microsoft Download Center: Download the package now. About Kerberos Configuration Manager The Kerberos C
-
Any way to reuse username.seen and preserve Read flags
After migrating from a 10.3 Server to a 10.5 Server, what I find is that the "Read/Unread" flags have been reset. But cyrus keeps these records in the username.seen files. Is there any way to reuse these files for the read/unread flags to stick throu
-
I have set up an extended network (thanks go to Bob Timmons for his assistance) using an AE as a base station and a second AE and an Airport Express to extend the wireless signal. Comcast provides, so they say, 50 Mbps. The AEX is located in the bedr
-
PS CS3 Color Picking Problem.
I'm using PS CS3 and for some weird reason my foreground and background colors have reversed. Every time I try to pick a foreground color with the eyedropper it rather picks the background and vice versa. How do I fix this? Can anyone help? Thanks in
-
How come there's no "save as" option anymore when saving files?
When I download a pic from the internet it opens it in Preview. I don't want to make any changes or anything to pic I just want to save into the file that I choose and name it what I want to but with Preview it doesn't give me these options. Why an