Is there function module for looking up CHANGE AUTHORIZATION for a cube?
Hi All,
In our BPS program we would like to look up the change authorizations a user has for his company in a cube. The problem is that with our current function module: RSSB_GET_AUTH_FOR_USER , SAP returns the values for "acitvity" DISPLAY and we would like to have "acitvity" CHANGE permissions.
In other words:
Is there a function module which we can use to look up authorizations for BW 7.0 on infocubes?
Thank you very much.
Hi
Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
Regards,
Viven
Similar Messages
-
Function module which uses both BAPI's for sales order create and change
Please name the function module which uses both BAPI's for sales order create and change.
BAPI_SALESORDER_CREATEFORMDAT2
BAPI_SALESORDERCHANGEYup.
you must write a piece of code for this.
with if else condition.first check if SO is exsist than use second FM to change it else create new SO from first FM.
logic somethig like this.
Amit. -
Function module to create and change delivery
Hi,
I need to create a function module to create and change delivery using the same function module.
For this I want to call the bapi's BAPI_OUTB_DELIVERY_CREATE_SLS
and BAPI_OUTB_DELIVERY_CHANGE.
So what are the variables I need to declare in source code of my function module.
Can anybody please suggest me.
thanks,
SudheerHi Sudheer,
Check this out
In the BAPI BAPI_OUTB_DELIVERY_CREATE_SLS
You need to provide
SHIP_POINT - Goods receiving point for the returned goods.
DUE_DATE - Delivery creation date selected as december 12
9999 unless specified.
DEBUG_FLAG makes analysis of the process earlier .
call function 'BAPI_OUTB_DELIVERY_CREATE_SLS'
DESTINATION logsys
EXPORTING
SHIP_POINT = 'MD01'
DUE_DATE = sy-datum
DEBUG_FLG = 'X'
importing
*delivery = lf_vbeln
*num_deliveries = lf_num
*tables
*sales_order_items = lt_order
*extension_in = lt_extin
*deliveries = lt_deli
*created_items = lt_itm
*extension_out = lt_extout
*return = lt_return
For the BAPI_OUTB_DELIVERY_CHANGE.
Please read the documentation of the function provided there.
A Wiki To support your need.
Link: [Wiki|https://wiki.sdn.sap.com/wiki/display/ABAP/Changeoutbounddelivery+%28VL02%29]
hope your query resolves soon.
Have a best day ahead. -
Function Module to get ABAP source code for a specific version
Hi all
Is there a function module that I can use to get the source code of another function module at a specific version?
For example, can I call a function module passing in "FM_NAME" and "FM_VERSION" and have it return the lines of code associated with that object?
Thanks in advance.
StuartThanks guys
That's incredibly helpful! I have one more question that I just thought of last night...
Is there a way to hook into the code activation process? I want to be able to take a snapshot of the ABAP source code at each point when it is activated for use in another system, but need to be able to intercept this event and get the source code at that point in time.
Any ideas?
Thanks! -
Function Module to Create or Change or Delete
Hi Friends,
Is there any function module to create or change or delete the business partners, there is a possiblity to do with CRMXIF_PARTNER_SAVE, but we are having some issue while calling in ISA applications.
So please let me know is there any possibility to get the functionality.
We need to create the BP with all the details means central data, address data and communication data as well as some sales area data.
Please share the helpful suggestions.
Thanks,
BhaskarTry following Functions:
BAPI_BUPA_FS_CREATE_FROM_DATA2
BAPI_BUPA_CENTRAL_CHANGE
or combination of both these FMs.
Good Luck. -
Function module to find the attachment list for an accounting document?
Is there a function module to find the attachment list for an accounting document? Or which table stores such references?
I know I can find this info from the transaction FB03, but is there a function module to find the attachments for an accounting document? So far I only found the attachments are stored in the table SOOD, and archived documents in table TOA03, but I can't find the table that stores the links between the accounting document and its attachments?
<b><REMOVED BY MODERATOR></b>
Thanks,
Ning
Message was edited by:
Alvaro Tejada GalindoHi,
i_object1-typeid = 'YARSATTA'. "<<< Give your Object id name
i_object1-catid = 'BO'.
i_object1-instid = i_yarsitem-docno. "<<<< Document Number
call method cl_gos_attachment_query=>count_for_object
exporting
is_object = i_object1
ip_arl = space
receiving
rt_stat = i_stat1.
read table i_stat1 into wa_stat1 index 1.
if sy-subrc eq c_0.
move wa_stat1-counter to v_attno1.
endif.
For link you need to check for table SRGBTBREL
and also please check class CL_GOS*
a® -
Function module is used to change the bp role
WHICH function module is used to change the bp role????
I have another doubt also,when i add a role (example prospect) for a bp using the function module it works fine.but if i see the classification tab in bp transaction for that particular partner,the prospect check box is not checked.
how to check that checkbox in classification tab automatically while we create a role???? -
Bapi or Function Module to do the availability check for Planned Orders
Hi all,
I need a Bapi or a Function Module to do the availability check for a Planned Orders. Anyone knows how?
I will use it in an Exit.
Thanks in advance
Points will be givenI think I found it.
If anyone is searching for it too, we will use these one:
CO_ZA_AVAIL_CHK_ORDER_MULTI -
Any BAPI available for mass creation/change/delete for dependency net
Hi guys,
Any BAPI available for mass creation/change/delete for constraints in dependency net. I mean any uploading option in mass for creation, change and delete.
Regds
RegdsHi,
Check if the below FM's meet your need:
CAMA_CNET_CONSTRAINT_MAINTAIN
CAMA_CONSTRAINT_NET_MAINTAIN
CAMA_DEPENDENCY_MAINTAIN
Regards,
Vivek -
Is there any function module which will upload storage locations for a mat
Hi gurus,
Is there any function module or BAPI to extend the storage locations of material which is done through <b>MMSC</b> transaction. I need to write a program to upload new storage locations for some materials.Please advise.
Thanks ,
Sam.You can do this using the BAPI_MATERIAL_SAVEDATA
Regards,
Rich Heilman -
Function module to get actual salary paid for a particular period
Hi All,
I have a requirement to build a report on the monthly superannuation contributions the company makes to the employee [Australian Payroll], along with a few other information. We are on a weekly payroll and make super contributions once a month.
Is there any Function module or table that stores the pay results for a period [from which I can calculate the superannuation amount] or superannuation pay ?
Or is there an alternative way of approaching to get the information ?
Thank you,
SatishI used table hrpy_rgdir to get sequence number for the given pernr, payroll area and dates.
Using the sequence number, I am calling Function PYXX_READ_PAYROLL_RESULT to extract the payroll results.
SELECT * INTO CORRESPONDING FIELDS OF TABLE it_hrpy_rgdir
FROM hrpy_rgdir
WHERE srtza = 'A'
AND paydt IN sopaydt
AND abkrs IN soabkrs
AND pernr IN sopernr.
LOOP AT it_hrpy_rgdir.
PERFORM get_rt USING it_hrpy_rgdir-pernr it_hrpy_rgdir-seqnr.
ENDLOOP.
*& Form get_rt
* text
* -->PERNR text
* -->SEQNR text
FORM get_rt USING pernr seqnr.
CLEAR: it_payroll_result.
CALL FUNCTION 'PYXX_READ_PAYROLL_RESULT'
EXPORTING
clusterid = 'RQ'
employeenumber = pernr
sequencenumber = seqnr
CHANGING
payroll_result = it_payroll_result
EXCEPTIONS
illegal_isocode_or_clusterid = 1
error_generating_import = 2
import_mismatch_error = 3
subpool_dir_full = 4
no_read_authority = 5
no_record_found = 6
versions_do_not_match = 7
error_reading_archive = 8
error_reading_relid = 9
OTHERS = 10.
ENDFORM.
For any period, the function module just returns sy-subrc = 6 [no_record_found].
We are on Australian Payroll. Could you please let me know what I might be missing or is there an alternative way of getting the information ?
Thank you -
Function module to update Moving Average price for Material?
Hi guys,
is there a function module or BAPI to update the moving average price in a material master?
i have tried UPDATE_MATERIAL_PRICE but guess it does not work. I have also tried MB_UPDATE_MATERIAL_PRICE and it seems to not work. Any pointers?We have a need to update the moving average price using movement type 531 for a custom solution we have built for other business requirements. We have not found a way to update the moving average price yet using any of the information provided here. Can any offer any other suggestions. Looking for a BAPI, user exit, or function module that we could tap into in order to updat the moving average price. Here is what we found...
We believe that the following suggestions doNOT apply...
BAPI_MATERIAL_SAVEREPLICA is basically for updating material master records in general. It does not address the offset to the alternate accounts.
BAPI_COSTESTIMATE_UPDATE_PRICE does not adjust the moving average price.
CIML_UPDATE_MATERIAL_PRICE updates Project Stock.
Any help would be greatly appreciated. -
Function module usage in vendor ageing report for ageing calculation
hi everybody there
as i have to calculate the vendor ageing
which is nothing but
AGEING = Currentdate - BLINE date
so for this i have coded as follows and use the function module but couldn't get the result .it is alwayas showing 0 means ageing is o but it is not like that
parameter:p_date1 type dats.
call function 'days_between_two_dates'
exporting
i_datum_bis = p_date1
i_datum_von = itab-zfbdt
importing
e_tag = itab-ageing
exceptions
days_method_not_defined =1
others = 2.
so what is the bug in it.hi,
<b>declare ur internal table field , of type BSIK-ZFBDT or sy-datum
thats the only thing u want to do.
the other parameter is sy-datum</b>
<b>data: field like BSIK-ZFBDT.</b>
DATA:lv_diff TYPE i.
CALL FUNCTION 'DAYS_BETWEEN_TWO_DATES'
EXPORTING
<b>i_datum_bis = sy-datum
i_datum_von = field</b>
IMPORTING
e_tage = <b>lv_diff</b>
EXCEPTIONS
days_method_not_defined = 1
OTHERS = 2.
IF sy-subrc = 0.
WRITE:/ <b>lv_diff</b>.
ENDIF.
nw it will work.
rgds' -
Function module to get GR IR details for Purchase Order
Hi
Is there any function module available in SAP to get the list of Goods Received and Invoice Reciept for a purchase order.
One way to create a custom fuction to fetch the details from MSEG and BKPF.
Can somebody suggest a better solution.
Thanks in advance.
Ruhi HiraHi,
u can get the GR/IR Information from purchase Order history table EKBE..The field VGABE will contain value for GR/IR as '1' and '2'.
Regards,
Nagaraj -
Function Module to Fetch data of Vendor for Inbound Delivery at runtime
Hi All,
I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
Thanks and Regards,
Vanessa NoronhaHi All,
I am new to EWM. I am using BADI /SCWM/EX_DLV_DET_PROCTYPE method CHANGE_PROCTYPE to change process type of the inbound delivery as per some logic from a custom table. However the parameter Vendor is not available in IS_ITEM during inbound delivery creation. Vendor is one of the key fields in my table.
Does anyone know any solution/function modules to fetch vendor data for the inbound delivery at runtime. I know the database tables to fetch vendor but this works only once the inbound delivery is saved.
Thanks and Regards,
Vanessa Noronha
Maybe you are looking for
-
Xorg - Intel GMA945 - Can't get it to work
Hi, It's been quite some time now that i am trying to run my X server on my Macbook. The graphics processor is an Intel GMA945, I've tried all version of xf86-video-intel, with xorg.conf, without, with different settings and options in xorg.conf. Not
-
Black screen with spinning wheel on startup
I have a Mac Pro 1,1 (bought in Dec 2007) Dual-Core Intel Xeon 2.66 GHz 9gb of ram 2TB HD I'm running 10.6.8. My computer froze while in Safari and after shutting it down with the power button, I started it up again and I first get the apple logo wit
-
I own a Apple PowerBook G4 running 10.4.11 Machine Model: PowerBook5,7 CPU Type: PowerPC G4 (1.2) Number Of CPUs: 1 CPU Speed: 1.67 GHz L2 Cache (per CPU): 512 KB Memory: 2 GB Bus Speed: 167 MHz Boot ROM Version: 4.9.1f3 Manufactured: 07/2005 - What
-
Discrepancy in FS usage information
Hi, We have a file system xyz and its usage is shown as 83% at SAP level. But when the same is checked at UNIX its usage is being reflected as 94%. Can any one brief about this discrepancy? Thanks and Regards, Damanaidu J
-
GATHER_TABLE_STATS ORA-02149: Specified partition does not exist
Database was upgraded from 8.1.7 to 11.1.0.7 . This type of error appear in alert.log file. GATHER_STATS_JOB: GATHER_TABLE_STATS('"abc"','"PLAN_M2"','"PLAN_MAR"', .. ORA-02149: Specified partition does not exist GATHER_STATS_JOB: GATHER_TABLE_STATS('