Function module for getting the open qty
HI experts,
I have a PO quantity(EKPO_MENGE).against same PO and item item(EBELN and EBELP) if Goods receipt has happened (MSEG_ERFMG) then i need to calculate the open qty.and also by netting the open quantity if multiple GRs has done against the same PO and item.
Can you suggest any function module to get this open PO quantity.
Hello,
Hope this link can help you.
[Po Open Quantity;
Thanks
Jayant
Similar Messages
-
Function Module for getting the Sales Price for a condition type
Hi,
I am looking for a standard function module to which I can pass my condition type(new customizing) and it will return the sales price. The customer is going to create some new condition type to manitain the sales price. I'll have the necessary information like material/sales org/distribution channel, customer and need the standard function module to read the condition records for that condition type(as configured) and give me the price. PLease help if you know of a standard function module performing this.
Thanks in advance.
Regards
MalthiHi malthi ,
welcome to sdn
for material sales area u can look for the validations is table MVKE.
the classification of the conditions is in tables like A901, a902 etc which in my opinion holds the condition types per classification .
put a A* in se11 and this will give the list of tables per classification .
u need to get the conditions as per kschl and dmbtr and
etc..
like this ..
Get Condition Values for Material/Plant combination
IF NOT i_a916[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
INTO TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a916
WHERE knumh EQ i_a916-knumh AND
kappl EQ i_a916-kappl AND
kschl EQ i_a916-kschl AND
loevm_ko NE 'X'.
ENDIF.
Get Condition Values for Material/Plant/Ordertype/
Customer combination
IF NOT i_a925[] IS INITIAL.
SELECT knumh kappl kschl krech
kbetr konwa kpein kmein
APPENDING TABLE i_konp
FROM konp
FOR ALL ENTRIES IN i_a925
WHERE knumh EQ i_a925-knumh AND
kappl EQ i_a925-kappl AND
kschl EQ i_a925-kschl AND
loevm_ko NE 'X'.
ENDIF.
just check this Fm if u can apply ur condition over here ..
ME_GET_PRICE_CONDITION
regards,
VIjay. -
Function module for getting the all PO waiting for release
Hi,
Is there any standard Function module for gettting all the PO's which all waiting for release.
Regards
Bala.hi Bala,
ECC 6.0 Exits for VA01
go through the above link i think that will help u...
Regards,
sindhu. -
Function module for getting the text.
Hi ,
Is there any funcion module to get the message text if i pass the message no and message class as the exporting parameter.
Useful answers will be rewarded.
Regards,
neslin.hi...
use this one
BAPI_MESSAGE_GETDETAIL
ok and following are for display
LMON_MESSAGE_DISPLAY
LTIF_MESSAGE_DISPLAY
reward..points -
Function module for getting the partner details and Classifications
Hi,
Can any one tell me FMs for getting the Partner Details and for getting the characteristics associated with an equipment??
ThanksHi Anu,
are you talking about the SAP Business Partner???
Well, if yes, then just check the FM 'BAPI_BUPA_CENTRAL_GETDETAIL'.
Or just search for oher FMs with BAPI_BUPA*.
Hope this helps...
Ciao Bernhard -
DDIF Function Module for getting the description of a BAPI structure
Hi,
I need to find a function module that returns the description of a structure...well a BAPI structure, not that that makes any difference.
The DDIF_ function modules I've tried will all return the descriptions of data elements in tables, but not structures.
Thanks,
TristanCheck FM : CACS_DBNAME2TABNAME
-
Function Module for getting the System time.
Hello All,
Which is the Function Module used in APO to get the system time?
Thanks for your response in advance.
Regards, ChiragHi Chirag,
Please try the following function modules
1) /SAPAPO/CRES_GET_TIMESTREAM_BT
2) /SAPAPO/OM_TIME_GET
The field name for system time is UZEIT under
structure SYST
Also try
3) CALENDAR_GET_TIMESTAMP
4) SAL_CSM_RECEIVER
I guess the third one will have your required data
Regards
R. Senthil Mareeswaran. -
Function Module for getting the desired date
Hi All,
I need a function module where in get the date value from Current date - 540 days.
i,e System Date - 540 days = ????
Thanks
Sureshprevious FM works good , this is for ur info , to give in month, date and year instead of onlly days
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = sy-datum
months = '00'
days = '07'
years = '00'
signum = '-'
IMPORTING
calc_date = w_due_date.
Message was edited by: chandrasekhar jagarlamudi
Message was edited by: chandrasekhar jagarlamudi -
Urgent: Function module for getting the input from user using a pop up
Hi all,
My requirement at user commmand a pop up should appear asking the user to enter the session name for the bdc session to be created.
My report allows the user to enter the session name of his choice.
I need the name of the function module which can do this.
Thanks
Pritishbetter to create one FM to pop-up.
check this :
function y_pop_up_get_distributor_time.
*"*"Local interface:
*" IMPORTING
*" REFERENCE(W_ROUTE) LIKE VBAP-ROUTE
*" REFERENCE(W_VBELN) LIKE VBAK-VBELN
*" REFERENCE(W_VGBEL) LIKE VBAK-VGBEL
*" REFERENCE(W_VSTEL) LIKE VBRP-VSTEL
*" REFERENCE(W_AUART) LIKE VBAK-AUART
*" EXPORTING
*" REFERENCE(W_FROM_DATE) TYPE SY-DATUM
*" REFERENCE(W_FROM_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TO_DATE) TYPE SY-DATUM
*" REFERENCE(W_TO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TKNUM) TYPE VTTK-TKNUM
*" REFERENCE(W_RC) TYPE SY-SUBRC
*" REFERENCE(W_DEPT_DATE) TYPE SY-DATUM
*" REFERENCE(W_DEPT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_REPO_DATE) TYPE SY-DATUM
*" REFERENCE(W_REPO_TIME) TYPE SY-UZEIT
*" REFERENCE(W_PLNT_DATE) TYPE SY-DATUM
*" REFERENCE(W_PLNT_TIME) TYPE SY-UZEIT
*" REFERENCE(W_TRUCK_NO) TYPE YW2_TIMEENTRY-TRUCKNO
*" REFERENCE(W_LIFNRN) TYPE YW2_TIMEENTRY-LIFNR
* SET PF-STATUS 'STATUS_100' OF PROGRAM SAPLZ2SLS.
*CLEAR:W_DATE_FROM, W_DS_TIME_1, W_ADATE,
* W_ATIME,W_BDATE,W_BTIME, W_CDATE, W_CTIME.
clear : w_route1, w_vbeln1,w_vgbel1,
w_vstel1,w_auart1.
w_route1 = w_route.
w_vbeln1 = w_vbeln.
w_vgbel1 = w_vgbel.
w_vstel1 = w_vstel.
w_auart1 = w_auart.
clear: w_date_to, w_date_from, w_adate,w_atime,
w_ds_time_1, w_ds_time_2,
w_bdate, w_btime, w_cdate, w_ctime.
call screen 100 starting at 10 2 ending at 115 13.
if w_ok_code = 'SAVE'.
w_rc = 0.
w_from_date = w_date_from.
w_from_time = w_ds_time_1.
w_to_date = w_date_to.
w_to_time = w_ds_time_2.
w_tknum = w_tknum.
w_dept_date = w_adate.
w_dept_time = w_atime.
w_repo_date = w_bdate.
w_repo_time = w_btime.
w_plnt_date = w_cdate.
w_plnt_time = w_ctime.
w_truck_no = sg_truckno.
w_lifnrn = w_lifnr.
else.
w_rc = 1.
endif.
* IF w_ok_code = 'CANC'.
* W_rc = 1.
* ELSE.
* W_rc = 0.
* W_FROM_DATE = w_date_from.
* W_FROM_TIME = w_ds_time_1.
* W_TO_DATE = w_date_to.
* W_TO_TIME = w_ds_time_2.
* W_TKNUM = W_TKNUM.
* W_DEPT_DATE = W_ADATE.
* W_DEPT_TIME = W_ATIME.
* W_REPO_DATE = W_BDATE.
* W_REPO_TIME = W_BTIME.
* W_PLNT_DATE = W_CDATE.
* W_PLNT_TIME = W_CTIME.
* ENDIF.
clear w_ok_code.
endfunction.
Regards
Prabhu -
Function module for getting the created or changed by user
hi ,
iam using the t-code ob 52
inthat iam i not getting the created or changed by user
so is there any function module which gives created r changed
by user .
it shhould take the input as t-code and it has to display
the created r changed by user ........
pls help ..........In OB52, in menu : Utilities, change log. This use Database log analysis. Try calling transaction [SCU3|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=scu3&adv=false&sortby=cm_rnd_rankvalue].
SCU3 transaction call report [RSTBHIST|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rstbhist&adv=false&sortby=cm_rnd_rankvalue] which call [RSVTPROT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=rsvtprot&adv=false&sortby=cm_rnd_rankvalue]. You may also use FM like [DBLOG_EVAL_CALL_FOR_SEL_OBJECT|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_object&adv=false&sortby=cm_rnd_rankvalue] or [DBLOG_EVAL_CALL_FOR_SEL_CHAP|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_forums_rm&query=dblog_eval_call_for_sel_chap&adv=false&sortby=cm_rnd_rankvalue], perform some where-used on RSVTPROT.
Regards -
Any Function Module For getting Shipment Details
Hi All,
I want to get all details of shipment. i tired , but unable to get any function? I was able to find the creation or change shipment function modules, but not able to find the function module for getting the details for Shipment.
like BAPI_SHIPMENT_CHANGE Change Shipment
BAPI_SHIPMENT_CREATE Create Shipment
similary
Do you have any idea for getting (display)the details of Shipments?
Regards,
Rajuhi,
you can use
VTTP,VTTK
or
RV_SHIPMENT_READ -
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 for GL account open items at a key date
Is there a function module for "GL account open items at a key date" similar to following for customer and vendor accounts?
BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
BAPI_AP_ACC_GETOPENITEMS Vendor account open items at a key date
If not, please suggest any alternatives. I am looking to capture the output of FBL3N (GL account line item display) in a program.
Thank you in advance.
Prasanna Pujarihi,
please go through the below link i think it will help u.
http://sapfunctional.com/FI/GL/Balance.
Regard
Abhishek Tripathi -
Creation of function module for updating the ztable
Hi,
I am sending the requirement for ceation of function module for updating the ztable.
Requirement----
Table Updation rule (New record)
While creating a new record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO-------> Sales Delivery no in case of sales orderShipment no in case of transfer order
UNAME----
> User ID
ZORDTYPE----
> SALEOR in case of sales orderTRANSF in case of transfer order
ZREFDOCNO----
>Sales Order no in case of sales orderPurchase Order no in case of transfer order
ZREFDOCNO1----
>Delivery no in case of transfer order
The table handling function will calculate the following fields
Table field Probable Values
ZREQNO----
>Running serial number (incremented by 1 for each new record)
ZREQDAT -
>System date
ZREQTIME----
> System time
ZSTATUS----
>OPEN (for all new records)
Before inserting a new record the table handling function will always check if a previous record exists for the same order / shipment no. if record exists the function will not insert a new record.
Table Updation rule (Status Update)
While updating a record the calling function will export the following to the table handling function.
Table field Probable Values
ZORDERNO----
>Sales order no in case of sales orderShipment no in case of transfer order
ZSTATUS----
>CANCEL if cancellation successfulERROR if cancellation not possible (order already processed)
The table handling function will calculate the following fields
Table field Probable Values
ZSTATDAT----
>System date
ZSTATTIME----
> System timeDo you have to create/update new record in Ztable through Function Module ?
or you need to write FM only for validation?
Any how, you need to create a Program with Input values for the fields of Ztable, and for rest of fields the Value can be calculated based on input as per your requirement.
Let me know clearly what exactly u need ?
Regards,
Kiran -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms
Maybe you are looking for
-
#Error & #Syntax when we are using merged dimension in BO4.1 SP3
Dear All, We are using BO4.1 SP3 and Bex query as datasource. When we are trying to take merged dimensions in Report block its giving #Syntax Error. When we are defining variable with merged dimension, its giving #Error message and the merged dimensi
-
Problem in select statement(urgent)
hi experts, my ztable structure is, year(key) customer(key) month(key) quan1 quan2 quan3 2006 britania 01 23 12 13 2006 britania 06 34 24 15 2006 britania 09 45 10 22
-
Partner functions (R/3- CRM) based on employee number (KNVP-PERNR) or CP
Hi all gurus, I am trying to replicate an partner-function base on personnel number/employee number for customers from R/3 to CRM. For those partner-functions only the employee number is filled in KNVP-PERNR (the KNVP-KUNN2, KNVP-LIFNR and KNVP-PARNR
-
Could someone please help me with this it is driving me crazy here! I keep getting this message when I try to send my son a text! It says there is a network problem and the message failed. what do i do to correct this on my samsung galaxy note 4? It
-
HT1338 I can't find download files in my Mac. Why?
I use 13 inch MacBook Pro, but I'm not faimliar with Mac OS. Last two days ago, I removed the download folder from the Dock accenditally. After that, I cannot find my downloading files from my mail ever. I'd like to know how can I fix it? Software fo