Generic function module for input two Infocubes and output one infocube-APO
Hi All,
My requirement is we have to pick data from two infocubes(Billing and Backlog) and send to One info cube.
can you please send me an;y generic function module is available in APO or explain me how to solve my requirement.
waiting for your response.
Thanks for Advance.
Shubhojit.
Hi,
I recommend using a multi-cube also but if you insist in JOINing two cubes then you can do that in an ABAP SELECT statement. You need to join the fact table and the dimension tables for all dimensions (for all InfoCubes). Please only retrieve data whose OBJVERS="A".
Please post again if you need more help.
Regards,
Emmanuel
Similar Messages
-
Generic function module for delta - which FM ?
Hi all,
I want to create a custom generic datasource in R3 which uses a function module for delta extraction. This is straight forward for full extract (copy FM RSAX_BIW_GET_DATA_SIMPLE - I already did this and have a full extraction working to BW). However I need to extract delta - and the above function module does not have example code for that (I have seen some forum posts that it 'can' be used - but this looks like a pseudo get around where the delta field name is passed in I_T_SELECT).
FM RSVD_BW_GET_DELTA_DATA seems to be an example code of a FM which can allow delta (i.e. manually codes how to fill date/time stamp information). However when I code this and try test in RSA3 it seems to try to populate the delta selection field before calling my function module! I need it to call my function and allow the function to specifiy the date criteria.
Can anyone help with an example of how this should best be done ?
Or can it only be done in a pseudo form using 'RSAX_BIW_GET_DATA_SIMPLE' example FM.
Note: I have setup the RSO2 datasource to allow delta.
Also - I have spent several hours searching the forum - but please answer with a link if you think it does answer exactly this problem.
Thanks for any help
MartinHi again,
Have had a few requests for the code I used - I created a new custom function copied from 'RSAX_BIW_GET_DATA_SIMPLE'. AEDAT has been set as the delta date for this data source in transaction RSO2.
Main sample code is -
1. Code to receive selection criteria and store in internal ranges -
FUNCTION zbw_sodetail_get_detail.
""Global interface:
*" IMPORTING
*" VALUE(I_REQUNR) TYPE SRSC_S_IF_SIMPLE-REQUNR
*" VALUE(I_DSOURCE) TYPE SRSC_S_IF_SIMPLE-DSOURCE
*" VALUE(I_MAXSIZE) TYPE SRSC_S_IF_SIMPLE-MAXSIZE
*" VALUE(I_INITFLAG) TYPE SRSC_S_IF_SIMPLE-INITFLAG
*" VALUE(I_READ_ONLY) TYPE SRSC_S_IF_SIMPLE-READONLY
*" TABLES
*" I_T_SELECT TYPE SRSC_S_IF_SIMPLE-T_SELECT OPTIONAL
*" I_T_FIELDS TYPE SRSC_S_IF_SIMPLE-T_FIELDS OPTIONAL
*" E_T_DATA STRUCTURE ZBW_SODETAIL OPTIONAL
*--- Sales order item create date
LOOP AT i_t_select INTO l_s_select WHERE fieldnm = 'ERDAT'.
MOVE-CORRESPONDING l_s_select TO r_erdat.
APPEND r_erdat.
ENDLOOP.
*--- Sales order item change date - DELTA only - auto filled before
this function is called.
C (Initialise Delta) - Low = blank, High = today - safety limit
D (Delta) - low = , High = . *from roosgendlm
LOOP AT i_t_select INTO l_s_select WHERE fieldnm = 'AEDAT'.
MOVE-CORRESPONDING l_s_select TO r_aedat.
APPEND r_aedat.
ENDLOOP.
2. Code to use selection criteria to get initial or delta. Note that for delta the delta date field to be used is automatically populated with the date of the last delta run (from table roosgendlm) -
SELECT VBAK~KNUMV
VBAPVBELN VBAPPOSNR VBAPMATNR VBAPARKTX VBAP~SPART
VBAPWERKS VBAPERDAT VBAPAEDAT VBAPNETWR VBAP~WAERK
VBAPABGRU VBAPZPROMISE VBAP~CUOBJ
VBEP~EDATU
INTO CORRESPONDING FIELDS OF TABLE ZBW_SODETAIL_ITAB
FROM VBAK JOIN VBAP ON VBAKVBELN = VBAPVBELN
JOIN VBEP ON VBAPVBELN = VBEPVBELN
AND VBAPPOSNR = VBEPPOSNR
WHERE VBAP~VBELN IN R_VBELN "Order number
AND VBAP~POSNR IN R_POSNR "Order item number
AND VBAP~ERDAT IN R_ERDAT "Order item date created
AND ( VBAP~ERDAT IN R_AEDAT OR "Created date in Delta range
VBAP~AEDAT IN R_AEDAT OR "Order item change Delta range
VBAK~AEDAT IN R_AEDAT ). "Order header change Delta range
Note that if the data source is called in initial or full extract mode the delta change date (aedat) will automatically be blank.
I have been using this successfully.
I hope this helps
Martin. -
Regarding BAPI/Function Module for updating fields FAKSK and LIFEX
Hi All,
I have a requirement wherein i need to update the fields FAKSK(Billing block ) and LIFEX(External Identification number).
We have already tried using the function Module WS_DELIVERY_UPDATE and also BAPI_OUTB_DELIVERY_CHANGE but we didnt find both the fields in any of the above BAPI or function module.
To be more specific to the requirement we need to remove the Billing block and update the LIFEX filed.
If anyone have come accross such situation Please advice.
Thanks ina dvahi satya ranjan,
put an append to structure 'vbkok' which is used as input parameter for WS_DELIVERY_UPDATE / WS_DELIVERY_UPDATE_2.
enter faksk and lifex and data field plus an active-flag for every data field.
e.g.:
ZZKZTRSPG ZZKZTRSPG CHAR 1 0
ZZTRSPG TRSPG CHAR 2 0
find include 'LV50SFZ2' in WS_DELIVERY_UPDATE am implement like this:
if vbkok_wa-ZZKZTRSPG <> space .
perform likp_bearbeiten_vorbereiten(sapfv50k).
if not vbkok_wa-ZZKZTRSPG eq space.
likp-trspg = vbkok_wa-zztrspg.
endif.
perform likp_bearbeiten(sapfv50k).
endif.
regards
marcus -
Need Function Module for Printing Rates,Discounts and Taxes in Invoice.
Hi All,
For our Invoice printing I need to get a function module which will provide me the rates,discounts and taxes against each item line of the Invoice No.
Finall it will be printed accordingly.
Can anyone help me regarding this with input parameter example.
Thx in Adv.Hi,
As far as I know there is no fun module to print all this stuff.
You have to get this data from KONV table by passing the VBRK table KNUMV field.
Then check for all the Rates and amount KBETR and KWERT fields for the respective condition Types.
You have to loop the KONV internal table and write all the condition rates and amounts in the script driver program.
see any Std script for this.
Regards,
Anji -
Function module for open sales order and open PO
hi all,
can anyone please tell me that is there any function module to get open sale order and also for open purchase order?
regards saurabh.Hi ,
In EKPO Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Qty.
Both Tables having Purchase Document no , So Purchase Doucment no throguh u will get the Material and qty , Finally u Subract the both Material Qty's .
u will get the Open Po For particular Material.
If ur not getting ,Inform me .
Regards ,
Shankar GJ -
Function Modules for System Status update and reservation for service order
I am sending the service orders data using IDOCS.
once the IDOC is received successfully i need to do 2 things:
1. Update the system status of the service order with the status 'SPV2'.
2. Create the reservation for the service order.
Is there any function modules avilable for both of these process.
If not how i can do these two things in ABAP Code.
please help me out in it.check whether this Fm's helps you
STATUS_CHANGE_INTERN
CO_IH_SET_STATUS_EXTERNAL
CO_IH_STATUS_FM_SET
BAPI_ORDER_CHANGE_STATUS_GET
BAPI_APPREQUEST_SETSTATUSVARNT
BAPI_ALM_ORDER_MAINTAIN
BAPI_RESERVATION_CREATE
Edited by: Keshu Thekkillam on Oct 26, 2009 5:10 PM -
Function Modules for creation of characteristics and Measurement Points
Hello everybody
I'm new in ABAP (trainee) and especially the use of characteristics. I'd be very happy if somebody could help me :).
Can anybody out there with some experience in creating characteristics and measurement points tell me how to create them with function-modules or by changing database tables?
I'm happy about every hint and ready to give some reward points.
Best Regards,
SteffenFM and TABLES
http://72.14.235.104/search?q=cache:71IXBMWcX_8J:reflexcontracts.co.uk/SAP_R3_QUICK_REF.xlsupdatetable+tse05&hl=en&ct=clnk&cd=1&gl=in
FUNCTION MODULES
http://www.erpgenie.com/abap/functions.htm
http://www.sapdevelopment.co.uk/fmodules/fmssap.htm
http://www.erpgenie.com/abap/index.htm
http://www.geocities.com/victorav15/sapr3/abapfun.html
Rewards if useful..........................
Minal -
Function module for logical file path and name
Hello all,
I am wondering is there any function module available to translate a logical file path to a physical file path and a logical file name to a physical file name? Thanks a lot!
Regards,
AnyiPlease check the FM FILE_NAME_GET.
CALL FUNCTION <b>'FILE_GET_NAME'</b>
EXPORTING
logical_filename = 'ZDELCHKREP'
parameter_1 = it_cntry-cntry
IMPORTING
file_name = l_file
EXCEPTIONS
file_not_found = 08.
CALL FUNCTION <b>'FILE_GET_NAME_USING_PATH'</b> EXPORTING
logical_path = 'ZDELCHKREP'
file_name = l_file
IMPORTING
file_name_with_path = l_file.
Message was edited by: Anurag Bankley
Message was edited by: Anurag Bankley -
Standard Function modules for t-codes FBV3 and FB03
Dear SDN Community,
Can you please tell me what are the standard function module that I should use to simulate the following transaction codes from Web.
FBV3- Display Parked document
FB03 - Display posted document
Thanks!
Surya.Hi,
Please check these BAPI and FM.
BAPI_ACC_DOCUMENT_DISPLAY
FI_DOCUMENT_DISPLAY_RFC
Regards,
Ferry Lianto -
Function module for Profit Center group and Cost Center group changes
All,
The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
Help is much appreciated.
Regards,
HariAll,
The requirement is to change the profit center group and cost center group from one node to another. Please remember it is trying to simulate the transactions KCH5 and OKEO programatically.
I would like to know if somebody had this requirement previously and had made use of some function module or some other technique which will help in changing the standard hierarchy nodes.
Help is much appreciated.
Regards,
Hari -
Function Module for Excise and VAT Calculation
Dear All,
I required one Function module for calculation of Excise % and amount of Invoice Verification Document.
We are use TAXINN tax procedure. I am try to make Purchases Register where we required the Break up of Full tax amount as basic excise duty, Education Cess, S&H Education Cess and VAT Amount.
Thanks
MukeshHi,
Locks are usually appliend on Tables. So you could find the table names affecting.
Then you could goto SE11 and n Lock objects search for table name
Once you identify the lock object. Display. Goto->Lock Modules.
You will get 2 module names one for enqueue and 1 for dequeue.
e.g. Lock object EBKK_ACCNT.
and FMs are DEQUEUE_EBKK_ACCNT and ENQUEUE_EBKK_ACCNT
Hope this helps.
Regards
Megha -
Are there BAPI or function modules for creating posting address ?
Are there BAPI or function modules for creating posting address and budget address? We are currently use BDC program and T code FMBSPO_MULT (Posting address) and T code FMBSBO_MULT(budget address), but it is a very slow processing because we have thousands of funds centers.
Your input will be appreciated!
Regards,
Fisher LiLi,
You will have, may be more answers in the technical forum :
https://www.sdn.sap.com/irj/sdn/collaboration
Regards
Valérie -
Hello APO gurus,
I am new APO technical, Can anybody please suggest Remote function modules for PPM creation, change and Delete
Thanks
sureshHi,
These are BAPI Remote Function modules you can use for create , change and delete PPMs
BAPI_PPMSRVAPS_GETLIST - Read PPMs, Plans and Dependent Operations
BAPI_PPMSRVAPS_SAVEMULTI_30A - Maintenance of Production Process Models and Plans.
I hope useful for PPMs
Thanks
sreeni -
Problem using function module for infotype 21
hi
im uploading the infotype 21 (family details) through function module hr_infotype_operations. i found that infotype 0106 (family/related person)
is a secondary infotype and that a record is created for 0106 ,everytime you create a record in 21. so i upload the family data of an employee using the function module for infotype 21 initially. and then fetch the same record from the table pa0106 and modify the same record with other information.
for example : u have the address details of a dependent(father subtype 11) in infotype 21. this address data is stored in the table pa0106 . im not able to modify the record for infotype 0106 using the function module 0106.
i would like to know the reason for the same. Is it because that infotype 0106 is a secondary infotype and u cannot modify the record using the fn module..?/
thanks
sridharanHi Sir,
I am also facing the same issue...i need to update dependents Information Date Of Birth n Perid(Which is stored in IT0106)...in IT 0021..
Kindly correct my code....
I am using the following code for this...
data: w_return type bapireturn1.
data: p0021_struc TYPE p0021,
p0106_struc TYPE p0106,
p_pskey TYPE pskey.
start-of-selection.
get pernr.
p0021_struc = p0021.
p0021_struc-favor = 'Gaurav'.
p0021_struc-fgbdt = '05/10/1955'.
Move p0021_struc-favor to p0021-favor.
p0106_struc = p0106.
p0106_struc-stras = '2235 BOmbay Road'.
p0106_struc-perid = '123456789'.
MOVE p0106_struc-stras to p0106-stras.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = pernr-pernr
importing
return = w_return.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = p_pskey-infty
number = p_pskey-pernr
subtype = p_pskey-subty
objectid = p_pskey-objps
lockindicator = p_pskey-sprps
validityend = p0021-endda " '99991231'
validitybegin = p0021-begda
record = p0021_struc
operation = 'mod'
tclas = 'A'
dialog_mode = '2'
nocommit = p_test
VIEW_IDENTIFIER = '07' "p0003-viekn
secondary_record = p0106_struc
IMPORTING
return = w_return
key = familykey
EXCEPTIONS
OTHERS = 0.
Enqueue personnel number
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = pernr-pernr
importing
return = w_return. -
Inbound function module for custom IDOC
HI,
I have created custom IDOC.I need to create inbound function module for that custom IDOC.Can any one send me sample
function module for custom IDOC.(what are all the import Export,tables parameters and exceptions that I need to create for function module)
Thanks&Regards
Rama.MekalaHI Rama,
I presumed that You are talking about a FM to create inbound IDOC. So for creating inbound IDOC you can use '
CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'
TABLES
idoc_control_rec_40 = gt_edidc
idoc_data_rec_40 = gt_edidd.
IF sy-subrc NE 0.
* MESSAGE e000 WITH text-003.
* ELSE.
* MESSAGE i000 WITH text-004 .
ENDIF.
just prepare edidc and edidd record in and pass it to the FM..
Hope this will work for you...
Thanks
Maybe you are looking for
-
IDCS3 - Mac: Plugins do not show up on production machines
I have converted a series of plugins on my Mac from CS2 to CS3 and have made their release versions available to our production people. I can see them fine on my box, but when the plugins are installed on Macs other than my own the plugins do not sho
-
How can I get my all my data on my new iphone 5?
I have a huge problem. Just received my iphone 5 today. I have an iphone 4 currently running v 4.2.1. I have not been able to update due to computer issues with my mac (I was planning to buy a new mac in the next few months so I didn't worry about it
-
Table for full user name and contacts
Can anyone tell me the table names where (1) the user name field is stored and (2) Vendor contacts are stored? On the user name I want the full name (meaning if my SAP id is SSMITH I want to get "Sam Smith"? Thanks!
-
Hello, I've learnt how to define the Entity Objects and View Objects in JDeveloper but I don´t know how to make the view....For example if i want to make an application to submit invoices into a database I should 1.- Make a connection to my database
-
I lost my hard drive and am replacing a lot orf software on the new one.software. Bah! But Adobe premiere 10 won't allow me to access the server to download a replacemet. What am I doing wrong?