FM to update or insert master data?
Hi Brothers,
I am looking for a FM that updates or inserts master data by a given structure.
I mean something like that:
DATA: table_to_update TYPE some_table.
LOOP thru table INTO structure.
CALL METHOD fm_i_am_looking_for
EXPORTING
infoobject_name = 'my_io'
struc_to_update = structure.
ENDLOOP.
FM should then update the values in structure
Thanks, Johannes
Hi,
for updating attributes you can also use FM RSNDI_MD_ATTRIBUTES_UPDATE.
check: http://help.sap.com/saphelp_nw2004s/helpdata/en/44/bd9b2916fd08cfe10000000a155369/content.htm
excample call:
Re: Adding Master data Via ABAP
Similar Messages
-
What are the tables will update while loading Master data ?
Hello Experts,
What are the tables will update while loading Master data ? And requesting you to provide more information about Master data loading and its related settings in the beginning of creation infoobjects.It depends upon the type of Master data u r loading....
In all the master data loadings, for every new value of master data an SID will be created in the SID table /BI*/S<INFOOBJECT NAME> irrespective of the type of master data.
But the exceptional tables that get updated depending on the type of master data are.....
If it is a time Independent master data then the /BI*/P<INFOOBJECT NAME> table gets updated with the loaded data.
If it is a time dependent master data then the /BI*/Q<INFOOBJECT NAME> table gets updated with the loaded data.
If the master data is of time Independent Navigational attributes then for every data load the SID table will get updated first and then the /BI*/X<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
If the master data is of time dependent navigational attributes then for every data load the SID table will get updated first and then the /BI*/Y<INFOOBJECT NAME> table gets updated with the SID's created in the SID table (NOT WITH THE MASTER DATA).
NOTE: As said above, For all the data in P, Q, T, X, Y tables the SID's will be created in the S table /BI*/S<INFOOBJECT NAME>
NOTE: Irrespective of the time dependency or Independency the VIEW /BI*/M<INFOOBJECT NAME> defined on the top of /BI*/P<INFOOBJECT NAME> & /BI*/Q<INFOOBJECT NAME> tables gives the view of entire master data.
NOTE: it is just a View and it is not a Table. So it will not have any physical storage of data.
All the above tables are for ATTRIBUTES
But when it comes to TEXTS, irrespective of the Time dependency or Independency, the /BI*/T<INFOOBJECT NAME> table gets updated (and of course the S table also).
Naming Convention: /BIC/*<InfoObject Name> or /BI0/*<InfoObject Name>
C = Customer Defined Characteristic
0 = Standard or SAP defined Characteristic
* = P, Q, T, X,Y, S (depending on the above said conditions)
Thanks & regards
Sasidhar -
Problem with Updating of Routing Master data
Hi,
My requirement is I have to download Routing Master data into excel sheet. Once downloading is over, user can change some fields data in excel sheet. Again ull upload the changed excel sheet data to SAP. Finally these changes will effect to the Routing Master data.
I am downloaded routing master data using FM CARO_ROUTING_READ.
I changed some fields in excel sheet. I tried so many FMs for updating the routing master data, but system not allow to me to change the Master data.
I tried with CP_BD_DIRECT_INPUT_PLAN,
CP_BD_DIRECT_INPUT_PLAN_EXT,
CP_BT_PLPO_UPDATE, for updating Routing Master.
And Standard program RCPTRA02 also.
Please send me one function module which can update the Routing Master data. But that FM have the same structure of CARO_ROUTING_READ. Otherwise type conflicts will come.
System throws error YOU CANNOT EDIT TASK LIST OBJECTS WITH ACTIVITY TYPE&.
Regards
ShaikHi,
I have found in OSS the following programs to download and upload routings:
- Note 107242: You can create the sequential input file with report RCPDIRO1
- Note 106965: Direct input routings: reading datasets
Maybe this can help you to upload your routings in another way. Unfortunately I haven't figured out yet how the program exactly works. So if somebody can give me some info about that one, it would be great.
Thanks,
Steve -
Insert master data from SEM to BW
Hi There,
I wonder if anyone know, how in a standard way if it is possibile to insert master data from SEM to BW.
I am referring in particular to the masterdata of the 0VENDOR. In fact the customer want to input the 0VENDOR Master data directly from SEM to BW.
Many thank in advance.
AntoninoIf you are talking about SEM-BCS in particular there is a special topic about Master Data Syncronization.
Take a look in service.sap.com/sem under Media Library: there you find two docs about (1 ppt and a doc).
See even OSS Notes:
- 578348 FIN master data: Syncronization local system with BW
- 676337 FinBasis: Leading fiscal year variant
- 689229 FinBasis: Reports for the manual synchronization
Hope it helps
GFV -
Error 4 update while loading master data
Hi Experts,
While I am trying to extract master data for HR Object(0HR_OTYOBJ). I am getting errors in Detail Tab as
Record 6332 :0HR_OTYOBJ : Overlapping time intervals of data record 6332 with 6333 : '['19951107'/'1
Record 6333 :0HR_OTYOBJ : Overlapping time intervals of data record 6333 with 6334 : '['19951115'/'1
Like for 15 records.
It is saying that Error 4 in the update .
In status tab
Error message during processing in BI
Diagnosis
An error occurred in BI while processing the data. The error is documented in an error message.
System Response
A caller 01, 02 or equal to or greater than 20 contains an error meesage.
Further analysis:
The error message(s) was (were) sent by:
Update
Can u pls give me ur suggests to sole this problem?
Regards,
SridharHello,
As per the error message in your data there are few overlapping records, that means with in the same time frame, there are duplicate records.
Pls ask your HR functional consultant to check whether this is correctly maintained in SAP R/3.
If this is correct in R/3, then goto 0HR_OTYOBJ properties and disable the time dependency of master data.
Ravi -
Error 0 update while loading master data
Hi,
Iam facing a problem while loading master data.Data has comes to PSA but it getting failed to load into infoobject it is showing the error " error in the 0 update".
Ihave tried for manual update, even though it is showing same problem .masterdata 0material is copy back from production to Quality.presently iam uploading data in quality.can anybody give your valuable suggestions.
Thanks & Regards,
Mahi.I've a compounding characteristic in this characteristic.
And the master data loading was fine yesterday but today it doesn't work.
When I check with rsrv this characteristic, a dump with message:
Error in ABAP application program.
The current ABAP program "SAPLRRSI" had to be terminated because one of the
statements could not be executed.
This is probably due to an error in the ABAP program.
In program "GP47HH4A9VROVK98YR0TT9S7TQ5 ", the following syntax error occurred
in the Include "GP47HH4A9VROVK98YR0TT9S7TQ5 " in line 25:
"Field "/BIC/MZCATWRT" is unknown. It is neither in one of the specifie"
"d tables nor defined by a "DATA" statement. "DATA" statement."
So I think something is wrong in this Char.
But what can I do for that?
Thanks a lot for all idea.
Juan -
Update rule on master data attribute
Hi
In my cube, I have a master data object 0COMP_CODE, which has attribute 0COMPANY.
Additionally, in the same cube, there's:
Master data object 0CUST_GROUP, which has attribute ZBUSPART
Master data object 0CO_AREA, which also has attribute ZBUSPART
I need to fill a characteristic ZTAXCODE (not a master data object) in the cube, with the following logic:
If 0COMPANY is between 1 and 30, populate ZTAXCODE with value of ZBUSPART from 0CUST_GROUP
If 0COMPANY is between 31-9999999, populate ZTAXCODE with value of ZBUS_PART from 0CO_AREA
I guess this will have to be done in the update rule. Right now I have 0COMP_CODE in the communication structure. How should the code be written to populate ZTAXCODE, with value of ZBUSPART, based on the value of the attribute of 0COMP_CODE - 0COMPANY?
Any help with getting me started here would be appreciated...
Thanks
MartyIn the start routine.
First, for all data package select company code, cust_group and zbuspart from cust_group and store it in the internal table.
Second for all data package select company code, co_area and zbuspart from co_area and store it in the second internal table.
Third for all data package select company and company code from comp_code and store it in the third internal table.
Now in the update rule routine.
read the third table and get the company for the company code and if the value which comes from this company is between 31 and 9999999 then read from second internal table otherwise read from the first internal table and update the result.
hope that is clear.
thanks.
Wond -
Incorrect Sales order value was updated in credit Master data(FD32 in open
Hi All
User created a sales order with 10 lineitems and Net value&total value is same for this sales order - 4010 Dollers,but when we check in Report(RVKRED88)the same order value is displaying as 7,8912 Dollers instead of 4010 Dollers and same amount(7,8912 dollers)is updated in open sales order value in credit master data(FD32) for that peritculer customer code,now credit percentage showing 430%, due to this reason the user is unable to release a new sales order for this customer code.
Already we run the credit re-organization program - RVKRED77 to correct value in credit master data(FD32) for this customer code but still it was not updated in FD32 and the report RVKRED88
because of this user's are unable to release the next sales order due to this problem for this particular customer,i would highly appriciate if i get a solution.
Thanks & Regards
Nagesh,ParuchuriHi
Check whether you have entered the credit control area to that customer in XD02.
Use the Update group 000012
o Sales order
- Increases open order value from delivery-relevant schedule lines
o Delivery
- Reduces open order value from delivery-relevant schedule lines
- Increases open delivery value
o Billing document
Reduces open delivery value
Increases open billing document value
Financial accounting document
Reduces open billing document value
regards
Edited by: Prashanth on Jun 10, 2009 2:52 PM -
BP not updating in Customer Master data KNA1
Guys,
I am creating a BP in CRM 7.0. Once the BP is saved & created successfully entry is present in all CRM tables as well as in the ECC side.
But for few cases the Customer Master data Table KNA1, KNVV is not getting updated, i.e no value for the BP in KUNNR.
Any idea as to what should I be checking to resolve this ? Plesae share the config details.
Also do you know how the Customer Master data gets updated ? Is it from the BAdI's or the GenIL class for CL_CRM_BUIL for componenet BP ?
I checked the methods of this dedicated GenIL class in hope to find an RFC for updating KNA1 but not successful. Is the RFC call made in BAdI ?
Tough to replicate the scenario as wheneevr I do BP gets updated in SD. But sometimes in PROD it does not happen so.
Plesae share some light.Hi Rohit,
Put a breakpoint in FM COM_BUPA_MAIN_INBOUND_ISU in ECC system. Inside this FM it first create customer using FM PI_BP_PROXY_BAPI_CUSTOMER at line 187.
IS_CUSTOMER flag you can find in b-doc structure LS_BP_EXTERN-CRM_DATA-SALESCLASS-DATA-IS_CUSTOME.
Before calling FM PI_BP_PROXY_BAPI_CUSTOMER system perfroms multiple checks if they all went succesfull then you have to debug inside FM PI_BP_PROXY_BAPI_CUSTOMER for finding out the root cause.
Thanks,
Ashish -
Manual Update of InfoObject -Master Data
Hello!!
I need to update master data stored in a InfoObject.
I know i can make this update using trx. RSDMD or RSA1. However, is the end user who has to load / modificate master data of InfoObject.
What is the best practice to give the user a quick and easy solution??
Can you give me some examples??
Thank you very much.
Javier .-
Edited by: Javier Sarrelli on Mar 3, 2011 8:36 PM
Edited by: Javier Sarrelli on Mar 3, 2011 8:36 PMHello,
You would be able to delete the entry in the Z table by some abap coding.
The data deleted wont be reflected or wont be deleted from the infoobject and it will always tend to exist.
If you want to ignore the deleted data, you could set a flag in the z table indicating the record is deleted, rather than actually deleting the record. Then in querys you can always filter on to exclude the records with this flag
Hope it helps.
Regards
Shashank -
Update Business Partner Master Data for Incident Management
Hi fellow SAP-ians,
I have two questions that I need to ask in relation to Incident Management SOLMAN 7.1:
1) Can Business Partner (BP) master data be mass updated via a catt script? (recording of transaction BP)
2) What BP roles can I use if i need to capture profit center, cost center and department info for each BP and to be able to display those info from Incident Management (CRM Web UI)?
Thanks in advance. Your swift response is highly appreciated.
B.Regards,
KhairulHi Vikram,
I appreciate your quick response. I went over the document that you've mentioned. However, nothing in there seemed to help.
Just FYI, i need to create/change approx. 25,000 Business Partners in SOLMAN 7.1 by 1)creating system users in SOLMAN and 2) execute report AI_SDK_USER_BP_GEN to generate/update BP IDs accordingly.
My question was, lets say if i needed to enter profit center, cost center and division info into each BP. In what BP role and fields, besides the standard BUP001 (Contact Person) & BUP003 (Employee), that I can use to enter those type of information?
For example, profit center - 88KUL186; cost center - 88KUL186; division - KLIA.
Thanks in advance. -
BW 3.5 update rules for master data
Hi all,
I create a dummy report in that report lifnr is charactics and name its att. after this i create a application component and assign data source and create infopkg data coming in lifnr and name field properly <b>i assign data source using direct master data update</b> after this i create infocube and assign dim.
but when i rgt click on infocube and display dataflow it shows only one level and when i open bex and open that it shows no application data found why this happened after creating infocube it is nessory that i creat update rule for this am i right plz send your openion.
thxHi Ankit,
Yoy have to load data to the cube.For that you need update rules.
Steps to load data to the cube
1.Replicate the datasource.
2.Assign Infosource
3.Create transfer rules
4.Maintain the update rules to the cube.
5.Right click on the datasource and schedule an infopackage for it.
Execute the Infopackage and pull the data to the cube.
Hope this helps
Regards
Karthik -
Program to activate update rule for master data (info objects)..very urgent
Hi all,
I have an info provider(A0CUSTOMN). For this the update rules are not active.In production system i am not able activate.Please let me know if there is any program to activate the update rule for masterdata(info object).
Thanks=points
ManjulaHi Manjula,
Leave the id and infocube field blank. Just provide the infosource name.
BTW is this a direct update master data object? In that case all this is not relevant.
Check if it appears as an Infoprovider.
I did not ask enough questions to start with.
BR/
Mathew. -
Using DTW to update the Item Master Data attachment tab
Hi Experts,
Has anyone tried using DTW to update the Attachments Tab on the Item Master Data please? I tried a few things (similar to importing an attachment to an activity) and couldn't get it to work.
I couldn't see that anything to do with the Attachments Tab was exposed in DTW when looking at the mapping fields and also when looking through the options available in the Items Object under Customize Templates - but then I might not be seeing it correctly!
Any ideas or solutions would be great.
Many thanks,
CarolineHi Caroline,
AtcEntry is correct for the document, this relates to the AbsEntry in OATC, which then in turn links to AbsEntry in ATC1.
There are a few fields that need to be populated in ATC1:
AbsEntry
Line - To be used if more than 1 Attachment
SrcPath - for the file path
Filename - for the file name
FileExt - for file type - i.e. .pdf
You may be able to configure DTW to import these as a manually created DTW but I suspect that OATC and ATC1 are not open to the Di which will stop it. Coincidently I have been looking at Task Centre to update these but have encountered the same problem
Regards
Sean Martin -
Update the timedependant master data in APD
Hi All,
I have a data flow like MD1(Master Data)--> APD routine---> MD1
Where MD1 is a time dependant master data .
Question:
Can I do the time depandant modifications in APD routines by accessing the DATETO and DATEFROM of the master Data .
Currently DATTO and DATEFROM are unavailable in Source fields as well as in Target fields .
I cannot find both the fields in processing so that I make myself sure that I am doing correct as those fields cannot be found.
Please confirm me if I am looking wrong or is it the way APD works.When you assign it to data target, you wil see assignment similar to transfer rule image. There you will find valid from date and valid To date.
-- Pravin
Maybe you are looking for
-
Navigational Attribute as Text Element
Hi... I have a report which shows list of Titles in the first column and the corresponding amounts based on several account and profit center restrictions in the further columns. Titles basically are movie names. Titles have navigational attributes
-
Why did my MBP just "awake from sleep" with a greyed-out beach picture????
My MacBook Pro just awoke from sleep with a greyed-out image of a beach scene while a status bar at the bottom of page appeared to show some form of check-up or update. Any idea what this was? -Pinkus MacBook Pro 15" CoreDuo 2.0 & G5 Dual 2.0 Mac O
-
ABAP code to connect 2 systems.
Hi, My requirement is such that I need to read the data from a cube of one BI system and write it into the cube of another BI system. I am able to read the cube data through "RSDRI_INFOPROV_READ" function module. 2 questions: 1) Is the above solution
-
Hi All - Looking for opinions and experience here .... Has anyone out there built their own "cloud" storage solution using ASM and Securefiles? Oracle keeps saying how wonderful ASM and Securefiles is ... but I wonder how it holds up in a multi-PB en
-
Anyone else getting crashes with their Adobe apps in OS X 10.5.6? Illustrator CS3 just crashed on me when trying to open a PDF and Flash is crashing on me, inconsistently, when I try to publish. I can open the same file and publish sometimes, sometim