Read master data variable values in fox before executing the layout
Hello,
I do have a requirement that if a user picks up a customer which do not have any account group assigned, the layout cannot be plannable. Account grp is an attribute of customer.I kept this function under function attribute before layout display. It is not giving any message if the selected combination of the variables in the planning data do not have any data. The user should get a message even before the data is entered.
My basic understanding is that the below function is reading thru transaction data and is not reading the variable values before opening the planning layout under planning folder.
Any suggestions.. Your help is greatly appreciated.
Thanks,
Code is below------
DATA CUSTOMER TYPE 0CUSTOMER.
DATA ACCOUNTGRP TYPE ZKATR3.
CUSTOMER =VARV(CUSTOMER).
ACCOUNTGRP =ATRV(ZKATR3,CUSTOMER).
DO.
IF ACCOUNTGRP = #.
MESSAGE E003(/SEM/001) WITH '*** CUSTOMER NOT PLANNABLE:*'.
EXIT.
ENDIF.
ENDDO.
Hey,
can you tell a little more how you want to use your coding ? I mean is it a fox formula and when it is the case when and how do you execute this function ? And even if you have the right coding, how will you set the accountgrp for a customer that has none assigned ?
Genenrally your coding (if it will be executed by a fox formular) will check the value of the global variabel 'customer', checks the value of the named attribute. But I think your loop is not 100% right. You have to put the exit statement outside your if statement because if the accountgrp != # it will be an endless loop.
Similar Messages
-
Error while assigning infoobject to the read master data in rule type
Hi sdns,
I want to read the zwostd info object data from zemployee master infoobject attribute list. For that i have selected rule details of zwostd infoobject in transformation of info cube, then i am tring to select the read master data rule type. It is taking more time and then it displayed error like permitted time was exceeded. Could any one please give me the solution for this problem.
thanks
karunSometimes directly typing the infoobject name in the field helps - otherwise it tries to fetch all the infoobjects available which is possibly why the time out occurs..?
Enter the Master Data infoobject directly and then you will get the fields assigned.
However my experience with read master data has been that whenever you change the master data IOBJ by way of adding / removing Nav Attributes / attributes etc - all the transformations using the read master data for the IOBJ that is being changed will get deactivated and it is a pain reactivating and transporting them again - particularly so when you are developing something on them and the changes are stuck across multiple requests ...
IMHO use a routine instead to do the same - it involves lesser maintenance. SAP is anyway going to run a similar SQL... -
Problem in Read Master Data rule type in Transformation
Hi,
I have 'Tax Classification' & 'Sales Territory' as attributes for 0customer (Master data). I loaded master data for 0customer & data have come up for this 2 fields. I want this 2 fields in my DSO with data filled. As this 2 fields are not in Transaction datasource of my DSO, i added this 2 fields in the Target side in Transformation of the DSO. In Transformation, I gave the rule type as 'Read Master Data' from attribute of '0customer' & mapped KUNAG (Sold-to) to this 2 fields. Activated the Transformation & executed the DTP.
When i check the data, i could see that the Infoobject 'Sales Territory' column alone is filled but 'Tax Classification' column is blank. Tax classification has data in 0customer master data for the displayed customer values but still data is not coming in DSO.
How does this happen when both the fields have same mapping & rule type and still data not getting populated for one field alone. Am i missing anything?
Regards,
Muralihi,
the green request in MD does not means that the data in MD is activated, you need to activate it after loading everytime so that it reflects in where used list as well.
regards,
Arvind. -
How to change the variable value in fox formula?
Hi All,
Please help me achieve this scenario,
in the variable selection screen , i wil give some i/p like, calyear(0calyear) = 2008.
In planing function using FOX formula, i must be able change the variable value to 2009.
Will it be possible to achieve this, can we change a variable value using FOX formula, if possible
please let me knw how to achieve this.
Thanks n Regards,
Priya.Hi Priyadarshini,
i dont know what is your requirement exactly.If you can give a better explanation of ur requirement we can help you. But to answer your question yes we can get new values for the variable in the planning function.
for this you need to couple the planning function together with the planning filter in a planning sequence. This planning filter should have the variable that you wanted to change. In the WAD when you want to call this planning sequence there is an option to call variable screen. If you enable this, it will pop up the variable screen to get this value again.
Guess this was helpful.
Regards.
Shafi. -
Read master Data is not behaving properly
HI All,
We have upgraded BI server with SAP_BW patch 17.
we have used Read master data rule type in the transformation to ODS and its giving proper output where as expected .But at the same time it also giving some improper out put ,means for those values which are not there in masterdata it is giving some wrong value , but while testing in to trasformation it is giving message for those entries that they are not available in the master data .What we did was loaded flat file for billing type in to Z infoobject contains two more info object in to attribute tab and in to those attribute through flat file we are loading some value and during transaction load we want attribute value to be filled for those biling type which were loaded in master data through flat file.
please help
regards
GauravHello
This is further to the problem described by Gaurav.
Let me explain the proble with an example
Consider the Master data:
Doc Type(key) Attr 1 Attr 2
ZORS PRODUCT Revenue
ZORD PRODUCT Revenue
ZORP PROJECT Revenue
ZMTO PROJECT Revenue
ZCOS SERVICE Revenue
Consider Transaction data
Doc Doc Type
10001 ZORS
10002 ZORD
10003 ZORP
10005 S1
10006 ZBDN
Expected O/p in the ODS is
Doc Doc Type Attr1
10001 ZORS PRODUCT
10002 ZORD PRODUCT
10003 ZORP PROJECT
10005 S1
10006 ZBDN
10007 ZCOS SERVICE
the Observed O/p
Doc Doc Type Attr1
10001 ZORS PRODUCT
10002 ZORD PRODUCT
10003 ZORP PROJECT
10005 S1 PROJECT
10006 ZBDN PROJECT
10007 ZCOS SERVICE
We are not able to understand how Attribute values are coming for Doc No 10005 and 10006.
We have recently applied patch 17.
Is there any reason for this
Thanks
Regards
zubin Kurian -
Why we create settlement profile. What master data must exist in sap before creating settlement profile for order.
As mentioned above, settlement is to post the cost to cost centers or any possible receivers as per the settlement profile. PM / Service orders, WBS elements, etc., can be temporary cost bearers from which cost should be settled to some permanent receivers.
Cost elements / Cost element groups should be available as Master data before configuring settlement profile.
To answer your latest query, there are 2 type of cost centers.
Sender Cost Center - Against this, labor / internal activity price will be maintained in KP26. This cost center will be maintained in PM / PP work centers. While creating PM / PP orders, one of the work centers & activity types will be mentioned. Based on the KP26 entry for the combination of Activity type & Sender cost center, price will be picked & calculated according to work hours / labor hours maintained in PM / PP orders.
Receiver Cost Center - Receiver cost center is the department / location cost center to which cost should be settled. Only receiver cost center will be maintained in settlement profile. Sender cost centers will be picked up automatically from work center. -
Hi All,
We are facing an issue while doing to Save data. We are suspecting that the source could be Master Data mechanism on Fly we have implemented .
For ex , User can create a new Entity in Portal and this triggers Import Master data from Flat File which creates ID and HIR and loads to BPC. This processes Hierarchy.
User also updates Master data properties in Portal .For ex: User changes Currency for Entity and this triggers Import Master Data from Infoobject and these changes flow to BPC.
So these two packages Import Master Data from Flat File and Import master data from Infoobject are always running frequently when users changes values in Portal and at this point some other users will be doing submissions.
The issue is we are suspecting that Master data loads are causing Save data to fail. Some records are saved but not all.
May I know if standard BPC allows Save Data while Import Master Data is loaded either Flat file or Import Master Data from Infoobject is running in background. These updates Hierarchy and disturbs Dimension master , not sure if Save data is possible . I am getting mixed results while reproducing this issue , so need some expert comments on this issue.
Apologies for bad scrrenshot.
The text in the screenshot is below
EPM . General Error
* Failed to Save Data
Details : Framework Message
Failed to read Master Data from Dimension Entity
Thanks,
KrishnaDear Vadim,
I know about the limitation but we have been fighting with SAP all this while and eventually it looks like we have succeeded in getting a solution for this business requirement. This appears to be a big update and I would like the Consultant world to know about this.
We have applied this
Note 1958480 Allow user logon BPC client while others are importing maste
which was hiding somewhere till now .SAP development team was under the same opinion as we are that Master data and Transaction data loads cant run in parallel but after applying this Note as suggested by one of the developer recently, it looks like both are running in parallel.
In the testing I noticed that I am able to load Import Master data from Flat File and Copy Transaction data (in cube) and Copy transaction data (cross cube) successfully. Both Master and transaction data loads are now running in parallel.
I was not able to believe but it appears to be working now as we expected .
We are going to do fully blown testing to see if we are going to face any dead blocks.
With this looks like we have a 100% working Real time Master Data loads functionality as expected by User.
Thanks,
Krishna -
Will master data propose values for transaction data where not maintained
Hi Friends,
If we haven't maintain certain chracteristic values in the Transaction record, the same maintaind in the master data......in the report does the system propose the value from Master data. If propose is there any settings do we have to maintaion in the BW System to act such like that.
For Example in the below Transaction record...........
Customer* Documenent No Sales Office Amount
ABC 1234 Mumbai 10000
XYZ 5 678 5000
Sales office haven't mainatined by the user for the record 5678.. Sales office is attribute for the Customer, In the Customer master evry customer mainatined with their sales offcie.Will it automaticcy propose from Master data.
Thanks & Regards
AnandHi
This can be done in a Individual routine.
First check if the "result" is empty. Else do a look up on Master data table of Customer.
Sample code :
Select customer and sales_off from Master data table of customer into itab in start routine.
In individual routine,
if result is initial.
read itab into xtab with key customer.
result = xtab-sales office.
endif. -
Read Master Data in BW Transformation
Hi,
I am using BW 740 SP02 and I need in a transformation rule to use the option "READ MASTER DATA", In fact this enables me to use all attributes of an infoObject and affect them to my data target ( Infocube).
I was wondering if there would be any possibility to affect also master data text of an infoObject and affect them to a data target?
I know that master data text are available through Bex queries, but for my case I need to have them in my Infocube.
Best Regards,
RAFIKHi Mohamed,
Using standard rule type this is not possible
However there are two ways to achieve this:
1. you use abap routine to read the text value from text table of info object (BIC/Txxx) in transformation
2. a. add a char info object to your master data
b. create another transformation from text data source to populate this new field (which is actually text)
c. create DTP to populate this new field with text values
d. now you can easily use, 'read master data' rule in transformation and assign the text field to your target field
hope this helps,
Purvang -
Error - InfoObject cannot be used to read master data
Hi All,
We am working on mapping objects in a transformation, on some of the transformation I am using the master data attribute to fill the infoobject. In some cases the mapping happens without incident but in others we are getting the following error
InfoObject cannot be used to read master data
Inside the long text of the message it says:
InfoObject does not have the correct attributes to be used to read master data for the target field
The object is one of the master data attributes, so we are not sure why we are recieving this error?
We have recieved it with 0COMP_CODE trying to load Fiscal Year Variant and with a non standard enhanced object ZMATERIAL which is a copy of 0MATERIAL with added attributes for Product Class, Product Group and Product Line wich come from the product hierarchy and are populated on the load of the material from product hierarchy.
Has anyone else had an issue with this error and can you tell us how you fixed it???
Thank you!
CarolineYou received this error for loading 0FISCVARNT (Fiscal Year Variant) because that InfoObject isn't an attribute of 0COMP_CODE (Company Code) and it cannot therefore determine what data to populate based on your input. Instead of using 0COMP_CODE, you may have to enter a constant value for the Fiscal Year Variant if you don't have it in your source InfoProvider.
When you created ZMATERIAL, did you use 0MATERIAL as a reference so that it would inherit the attributes and texts? If so, Product Class, Product Group and Product Line would have to be attributes of 0MATERIAL. If you didn't reference 0MATERIAL and are loading attributes directly to the custom InfoObject attributes, then Product Class, Product Group and Product Line would have to be attributes in ZMATERIAL in order to use the Use Master Data function for transformations. You may have to derive the values for these different, such as add ABAP for lookup routines. -
Read master data on demand:
I am trying to install a cube following error occured :
<b>Read master data on demand: Attribute 0CHRT_ACCTS shown is not an attribute of 0COMP_CODE.</b>
Please help.check if 0comp_code has chart of accounts as attribute or not - delivered version has it as an attribute. It might be that you guys might have removed it - and the same value is being derived from masterdata table in the cube in the update rules - and the system is not able to find it - and is bombing out
-
hi please tell me the use of transformation ---> read master data.with example please
Hi,
Please search the forum before posting.This is again very basic question and has been discussed couple of times.
Read the below pdfs.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50357f56-5701-2e10-fd8c-a2da94bd95dd?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/306ccc96-f000-2d10-1985-b20209f2b502?QuickLink=index&overridelayout=true
Hope it helps.
Regards,
AL -
Read Master Data for Process order status change (REL to CRTD)
I am unable to read master data and thus change the status of process order from REL to CRTD. (COR2)
The reason it says, error in BOM reading, Transport Requirement (TR) already generated.
Even after deleting the TR (LB02), the issue still exists.
Is there another way of changing the status or some more steps are needed for the TR deletion?
Thnx!
Abhi.Order header Status-
REL Released
MSPT Material shortage
PRT Printed
PRC Pre-costed
BASC Batch assignment complete
BCRQ Order to be handled in batches
SETC Settlement rule create.
In the error log it gives-
Diagnosis
Transfer requirements have already been generated, so therefore the bill of material cannot be read.
System Response
The system does not execute the action.
Then I deleted the TR (LB02), but still I cannot reread the master data.
The MSPT was for only 2 materials out of 6 and there is no GMPS status.
There is prod supply area and control cycle used.
and the TR generated at order release. -
Process Order status CRCR needs to re read master data
All,
I have an issue with re-reading the master data in process order.
I have an order which was released and control recipe was also released since we use pi sheet to record shop floor data.
After releasing the control recipe user made changes into bom and he wanted to re-read master data , on the master data tab re-read master data button is not activated not if i go menu path from the header process order-> functions-> re-read master data is active.
Neither i am allowed to set the deletion flag for the order, i am getting error message process order status CRCR does not alow to set the delection flag.
Any solution to this issue is appriciated
Either i should be able to re-read the master data or set the deletion flag...In your case Control Recipe is already created, so you need to send a process message to set the status of the control recipe to finished. "CRFI". Follow the steps below,
Transaction CO57, to trigger manually a process message with message Category PI_CRST for the process order and Control reciepe combination.
Then use Transaction CO54 to send the Message to the process order.
You can complete the PI Sheet by clicking the "complete" button in the PI Sheet also.
Now try to re read master data -
How to read master data?
Can anyone tell me the procedure how to read master data?
Hi,
I am sorry but your question is a bit vague. What do you mean by your statement? Can you please elaborate your requirement.
Maybe you are looking for
-
Buying my first Macbook Pro Non-Retina (13 or 15 inch?)
Hey, I'm currently buying my first MBP for University. I've been using my 17' Sony Vaio for University so far, it's incredibly fast and HD, but it's way too big for University. When you're sitting in the hallway and trying to do work, way too big. It
-
ASSET CODE FOR ACCOUNT ASSIGNMENT CATEGORY IN PURCHASE ORDER.
Sir, greetings!!! here is a procedure we follow... We create asset code(AS01) for capital items. when createing Capital purchase order for the item, we give A as asset for assignment category which then asks for asset code in acc assignment cat tab.
-
Not able to see the Person who posts reply and asked the question.
Hi, I am facing issue with Posts in MSDN forum. I am not getting the name of Person who replied and asked the question which earlier used to come below the Post. Are all facing the same issue? I am using IE 8 and Google Chrome 33.0.1750.117 m. Can an
-
Accessing Constant classes from jsps
org.apache.struts.taglib.html.Constants is a java constant class with no getter/setter methods is this the only way (not using other form beans) to get the value of a constant within that class can we use pageContext or any other expression language
-
Post Author: deltaXI CA Forum: General Feedback Hi i am pretty new in CR. I have a report which is grouped in 5 levels. ie.when we view the report we get the higher level view then you have to drill down to each of the levels. the grouping and drill