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 Hira
Hi,
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
Similar Messages
-
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 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. -
Archive details for purchase order
Hi,
We have the requirement as below -
1. The Purchase orders(70 in number) are cancelled by ASCP plan run and the line quantities have become 0 for those lines with closed_reason as 'Close status rolled up'.
2. Now business wants to reinstate them.
Need to know :
1. from where we can get the old line quantities for these purchase orders.
2. Is there any place from where we can get the archive data for purchase orders.
Regards.You cannot un-cancel a PO.
But you can find the old quantity from po_line_locations_all table's cancelled_quantity column.
And then create a new PO.
Depending on your setup for PO archiving, you will be able to find the old data in the following tables
po_line_locations_Archive_all
po_lines_archive_all
po_headers_archive_all
Hope this helps,
Sandeep Gandhi -
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! -
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 -
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 display the card details for the tcode BCA_CN_card_03
HI all,
I need to know the function modules to create the card data and also to display the card details in accounts management in CRM.
Points will be awarded.
Thanks and regards,
vinoth.1 BUPA_ADDRESS_GET_DETAIL
2 BUPA_IDENTIFICATION_GET_DETAIL
BUPA_IDENTIFICATIONDETAILS_GET
3 BUPA_TAX*
4,5 BUPA_PCARD* -
Function Module to create AFS Outbound delivery for sales order
Guys,
I am looking for a function module to create deliveries for a sales order IN IS-AFS.
I cannot make BAPI_DELIVERYPROCESSING_EXEC work. Also, if I use the IDOC type /AFS/DELVRY03 via message type WHSCON and function module IDOC_INPUT_DELVRY it doesn' work either.
Does anyone know which function module I could use? I need to select specific AFS schedule lines though, but at this point I am not able to make any work.
Thanks
LeonardoThis will not help .
Edited by: Amit Khare on Aug 7, 2008 3:49 AM -
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
DirkHello 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 -
Texts not getting populate in idoc for Purchase Order
Hi,
While transfering PO from MM to SRM thru XI texts at the item level n header level are not populating in ithe idoc segments.
Please let us know the solution.
Regards,
ManuHi Acel,
You will need to check the settings in transaction WE20 - You will be using a Partner Profile to determine the outbound message, either for each vendor or a generic one.
on the outbound parameters, you will need to ensure that ORDCHG is set up as a message type. If not, add it, ensuring that you use the message ORDCHG, the basic type (or extension) that you are using, usually ORDERS05 and make sure that in message control, you have process code ME02 set up. This should enable the correct message type to be determined.
Regards,
Rob -
Function Module to get PO details based on Plant and PO date
Hi
1. Is there any Function Module to get PO details based on Plant and PO date?
2. Is there any Function Module to get Material document details based on PO number?
Thanks
Narendrahi,
check these standard reports.
ME2L - By vendor
ME2M - By material
MSRV3 - By service
ME2K - By account assignment
ME2C - By material group
ME2B - By tracking number
ME2N - By PO number
ME2W - By supplying plant
also chck this func module.
REPL_LIST_PURCHASE_ORDER_READ
reward if hlpful. -
Function module to get invoice details ...
Hi friends ...
I need function module to get sales invoice details including items ....
Thanks & Regards ..
AshishHi Ashish,
Try LB_BIL_INV_OUTP_READ_PRTDATA function module, this will help you..
Regards,
S. Sudagar -
FM to get partner profile details for ALE-IDOCs?
hi
is there any function module to get partner profile details in current system?
extremly sorry my mistake......
for ALE-IDOCs
Message was edited by:
ashwinee maliBAPI_BUSINESS_PARTNER_MODIFY CBP: BAPI for Modifying (Creating/Changing) Business Partner
BAPI_BUSINESS_PARTN_GET_DETAIL CBP: Business Partner Detailed Information
regards,
srinivas
<b>*reward for useful answers*</b>
Maybe you are looking for
-
Issue while reporting on 0LANGU infoobject in BI7.0
I am facing a issue where in i have created a infoobject referencing InfoObject 0LANGU.After assigning 0LANGU InfoObject as inprovider i am trying to create a report in BI using query designer but unable to view the values of the infoobject.The query
-
How to time a web service at back-end?
I implemented a web service using Axis. This service is to receive an upload file and process it. Since it is a long process, I want to know and log how much time was used for each service call at the server side. The web service code is like: public
-
Error when Exporting DDL script for whole schema
When I right click connection, Select "Export" then "DDL Script", the following error occur (Exception Stack Trace) java.lang.ClassNotFoundException: oracle.dbtools.raptor.dialogs.actions.UserDDLExport at java.net.URLClassLoader$1.run(URLClassLo
-
JEditorPane reading in large files
Hello, I am currently using JEditorPane.read() to read a rather big ASCII text file. It works for the most part except: 1. The java runtime dies due to out of memory exception for any file that is over around 6 megabytes in size. 2. Any file whose si
-
External Drive to play DVDs on Macbook Air
Does anyone have a recommendation of which external drive to purchase for my Macbook air so I can play my DVDs and load Microsoft Office onto my Macbook Air?