Function module to get list from CDHDR for MATERIAL
Hello,
I am searching for the function to get a list of CDHDR-entries for a material in transaction MM03.
My debugging was not successful. So I hope someone here has the answer.
What is the name of the function that SAP uses in TA MM02/MM03 to get the list of CDHDR-entries for a material number and from where (include) is it called?
I found already the function to get the related CDPOS entries, starting from the list with CDHDR entries in the transaction.
This is CHANGEDOCUMENT_READ_POSITIONS.
But here I am definitely too late, because I am searching for the reasn why one of my changes entered in CDHDR is not selected!
Thank you in advance for the answer!
Best regards
Dirk
Hello Suhas,
yeah, I used MM04 from your answer and found the same!
Thank you! This will help me!
It is PERFORM relevanz_pruefen
called after the FM which kills some of my entries.
Now I can find a solution for my issue!
Best regards
Dirk
Similar Messages
-
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 get the BOM details for a material-plant combination
hi
Is there any function module to get the BOM details such as
BOM Usage -STLAN
Alternative BOM -STLAL
Items -POSNR
Required Quantity-EMENG
Resulting Quantity-MENGE
Unit of measure -BMEIN
Base unit of measure-MEINS
for a given material-plant combination
if so please suggest me some FMs.................
Awaiting for ur reply..............try the below fm it may be useful for you
DATA : BEGIN OF I_BOM OCCURS 0.
INCLUDE STRUCTURE STPOX.
DATA : END OF I_BOM.
CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
EXPORTING
CAPID = 'PP01'
DATUV = SY-DATUM
MEHRS = 'X'
MTNRV = P_MATNR
WERKS = P_WERKS
TABLES
STB = I_BOM
EXCEPTIONS
ALT_NOT_FOUND = 1
CALL_INVALID = 2
MATERIAL_NOT_FOUND = 3
MISSING_AUTHORIZATION = 4
NO_BOM_FOUND = 5
NO_PLANT_DATA = 6
NO_SUITABLE_BOM_FOUND = 7
CONVERSION_ERROR = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
just befor use it check your application area.for my case it is PP01. you can find it in CS12 when you are exploding the bom the value you are giving in BOM application that is the value for CAPID.
Just go to se37 and checkout the fm it has lot of options here I am using the minimum things.
regards
shiba dutta -
Function module to get the payment details for PO
Hi,
Is there any standard function modlue to get the payment details for specific purchase order or is there any table where we can get the payment details till date.
My requirement is purchase order wise how much already paid to vendor and what is the balance amount to be paid vendor.
thanks in advance....
Regards,
SreeHello
BAPI_PO_GETDETAIL will help you.
Look at structures PO_ITEM_HISTORY and PO_ITEM_HISTORY_TOTALS
Also you may use table EKBE -
Function Module to get Active Serial Numbers of Material Stock
Hi Experts,
Do we have any function module to get all the active serial numbers of Material Stock? Or any suggestions on how to get these through SQL Queries?
Thanks a lot for your help!GET_SERNOS_OF_DOCUMENT
-
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 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 find list of workflows for a document
Hi
Is there any standard function module where I can get list of active workflows for a document ?
example : for business object FIPP I have a document number, fiscal yr and co code. I need to get like of workflow instances for it.
what we do in SWI6 or in display transaction - services for objects - workflow overview.
I need find function module as I need to call it in a user exit.
thanks
bhakti.Hi,
Concatenate the fields in the following order:
1. SourceCompanyCode
2. DocumentNo
3. FiscalYear
Use
CATID = 'BO'
TYPEID = 'FIPP'
INSTID = Concatenated value
in SWW_WI2OBJ to find TOP_WI_ID. Use this TOP_WI_ID as an input Parameter TOP_WI_ID of table SWWWIHEAD.
This will give you all workitems for your Document.
Regards
Gautam
Edited by: gautam maini on Jul 7, 2011 2:23 PM -
Function module to get data from VARI table
Hi All,
thank you for viewing this thread. can anyone help me out in finding a function module which can get data from the VARI table?
thank youHi,
FMs you will require are:
RS_VARIANT_CONTENTS - Values of a variant returned in a table
RS_VARIANT_EXISTS - Checks whether a variant exists for a report
RS_VARIANT_TEXT - Returns short description of variant
RS_VARIANT_VALUES_TECH_DATA - Reads variant parameters of a report
Do search on them for complete details.
Cheers. -
Function Module to get values from MBEW and MBEWH
All,
I searched in SDN but could not find a suitable answer.
Is there a SAP standard Function Module which gives the physical ending inventory (total stock) for a given period. all hsitoric values to be pulled from MBEWH.
your response is much appreciated.
Regards
KasiHi,
Better to create a query? -
Function Module to get address from adrc table
Hi,
Is there any Function module which is retrieving data from ADRC table by passing address number.
I tried in SDN and I got address_read but its obsolete.Hi,
Please try this piece of code
data: wa_addr1_sel like addr1_sel,
wa_addr1_val like addr1_val.
clear : wa_addr1_sel, wa_addr1_val.
wa_addr1_sel-addrnumber = it_adrnr-adrnr.
call function 'ADDR_GET'
exporting
address_selection = wa_addr1_sel
importing
address_value = wa_addr1_val
exceptions
parameter_error = 1
address_not_exist = 2
version_not_exist = 3
internal_error = 4
others = 5.
if sy-subrc eq 0.
it_addr-adrnr = wa_addr1_val-addrnumber.
it_addr-name1 = wa_addr1_val-name1.
it_addr-street = wa_addr1_val-street.
it_addr-city = wa_addr1_val-city1.
it_addr-region = wa_addr1_val-region.
append it_addr.
clear it_addr.
endif.
Regards
Hiren k.Chitalia -
Any Function module to get data from ESS leave form
Hi Friends,
I have modified std workflow ws12300111.with 2 levels.
I want to send mail to HOD. In that mail i have to mention details like start date , end date,leave type which is entered into ESS form. I want to retrive that data.
Is there any Fm is available? which wil give ESS data as output.
Plz let m know.
Regards,
ShitalHave you thought about creating attachments in the WF so you can read the form and get data from it.
There's plenty of standard WF examples around of attaching objects to WF's.
Since the ESS action will initiate the relevant workflows you should easily be able to save this data.
BTW If your other question on this WF was answered please close that thread.
Cheers
Jimbo -
Any function module to get Stock and value of material on a given date?
Hi Friends
Is there any function module available to get Stock/and value of material on a given date?
Thanks
HarishSorry I didn't elaborate the requirement.
I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
I need function module to use in Zreport.
Thanks
Harish -
Function module to get Conditions based on Customer & Material
Hi,
Is there any function module such that the list of conditions are displayed, based on Customer & Material given?
Thnx in advance,
Shivaa.....actualy Jan this report is based on GL account no..GL acount no.s dat we required are not there in bsid n bsad...we need bank related GL account no..IN BSID n BSAD all GL account no. are customer GL account no.s...
-
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.
Maybe you are looking for
-
Portal Hide property in Portal 7.4
Hi experts, I need to hide the Wd-java iView/page at runtime and should not be visible to portal front-users. As it includes some logic to change the language of the user from any language to English_UK. But in Portal 7.4 SP6, I am not able to see a
-
Using sql:variable in an insert statement
I'm writing an insert statement for a table with an XML column. Most of the XML is static, but I need to replace the value of an element with the value of a T-SQL variable, as shown here: CREATE TABLE [dbo].[OrderDetail]( [OrderID] [int] NULL, [Orde
-
Hey All, I've been a mac user for about two years now and have become more and more impressed by the stability offered by Unix. However, I still live in both worlds (XP and OSX) and my programming roots are windows based (sorry ). Here's the problem:
-
Is there ANY way i can develop j2me applications in NetBeans for Solaris?
Ok, i don't like to complain, but this is really starting to tick me off. Here I am on this AMAZINGLY stable beautiful feature rich operating system that is Solaris SXDE. I am a Student and I LOVE java, I decided to try my hand at j2me programming, I
-
Boots up almost like verbose mode.
I have an Intel iMac that seems to work fine, that we have reinstalled Leopard on several times, but everytime we startup the machine, I get a black screen with some white text (almost like it was starting up in verbose mode) then it goes away and go