Function moduel for finding open offers
Hello togehter,
I search a "standard" function module to find all open offers for a customer and a article.
This means:
During order creation with BAPI I have to find out if a open offer exists for a customer and article of position.
Open means valid date and quantity which is not blocked or already delivered.
Do anybody know a function module where can deliver this informations?
I have debugged the VA01 but I found only some subroutines which select the offers and contracts.
I am not sure if I am the first one with the need of this functionallity.
Regards
Christian
The very important information which is really difficult to find out is the open quantity of an offer.
To find open offers I can check status in VBUP for all offers and article.
But I don't find the open quantity what can be still delivered or reference to a new order.
I have seen there is an structure VBAPD for standard screen with a field ORFMNG which is calculated during runtime. But I don't know exactly how and where.
Similar Messages
-
Function Moduel for Acceptance of Service Entry Sheet
Dear Experts,
We have a requirement, in which we need to accept the Service Entry sheet from a web service. For this purpose, we are searching for suitable BAPI. We have BAPI for Release of Service Entry Sheet. But failed to find any BAPI / Function Module for the acceptance of the Service Entry. Please suggest a suitable function module / if available please share the source code for the same.
Thank you,
Regards,
Ramakrishna MangenaHI Ram,
Please Find a few Function Module Below
BAPI_ENTRYSHEET_CREATE
BAPI_TRANSACTION_COMMIT
Please Find the Link Below. it has code
Hope this will be Help Ful
[Code|Error while creating service entry sheet]
Thanks
Kalyan -
Function Module for GL Open Items
Could any body from forum tell me that "there is any Function Module for General Ledge open Items".
Rgds,
Rajuuser exit F1040001 can be found in SMOD...and this is for
Reserve for bad debt - calculate percentages
This is only one available for FBL3N.
Regards,
Velumani -
Function Module for GL open Itmes
Could any body from forum tell me that "there is any Function Module for General Ledge open Items".
Rgds,
RajuTry the below FMs
BAPI_AR_ACC_GETOPENITEMS --> Customer account open items at a key date
BAPI_AP_ACC_GETOPENITEMS --> Vendor Account Open Items at a Key Date
Hope this helps.
Thanks
Balaji -
Function moduel for updating cprojects elements
Hi experts!
Does anyone of you know whether there exist a function module for updating elements of a project? I will preferably not update tables directly.
My intention is to update the status of about 1000 projects. If some of you have control over the tables regarding cprojects I will be thankful for that too!
Regards CamillaHi Camilla,
Please find below the list of most frequently referred cProjects tables:-
DPR_PROJECT (Projects)
DPR_PHASE (Phases)
DPR_TASK (Tasks)
DPR_CHECKLIST_H (Checklist)
DPR_CHECKLIST_I (Checklist item)
DPR_CHECKLIST_R (Checklist reference)
DPR_APPROVAL
DPR_IND_APPROVAL
DPR_CTRLPLAN_I (Control plan - item)
DPR_CTRLPLAN_V (Control plan - version)
DPR_PART (Role)
DPR_SKILL
DPR_BUPA_FAVO
DPR_BUPA_LINK
DPR_ENTITY_LINK
Best Regards,
Saurabh -
Function module for customer open item aging report
Hi all,
Please let me know the FM for customer open item aging or which FM is used in tcode S_ALR_87012178 to get the age wise open item of customer.
Thanks in advance
Regards
Puneet<b><u>Part4</u></b><br />
<br />
<pre class="jive-pre"><code class="jive-code jive-java"><font color="red">"&----</font>
<font color="red">"*& Form process_data</font>
<font color="red">"&----</font>
FORM PROCESS_DATA .
DATA : L_TOTAL_TMP(15). <font color="red">" LIKE BSID-DMBTR. </font>
CLEAR : L_TOTAL,LPD_TOTALS.
<font color="red">"* As per Customer accumulate the amount.</font>
<font color="red">"* For overdue items.</font>
CLEAR : L_TOTAL_TMP.
LOOP AT L_OPENDUE_LT.
CONDENSE L_OPENDUE_LT-DMBTR NO-GAPS.
L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LT-DMBTR.
AT END OF KUNNR.
LPD_TOTALS-KUNNR = L_OPENDUE_LT-KUNNR.
LPD_TOTALS-LPD_TOTAL = L_TOTAL_TMP.
APPEND LPD_TOTALS.
CLEAR : L_TOTAL_TMP.
ENDAT.
ENDLOOP.
CLEAR : L_TOTAL,LOA_TOTALS.
<font color="red">"* As per Customer accumulate the amount.</font>
<font color="red">"* For Open Items.</font>
CLEAR : L_TOTAL_TMP.
LOOP AT L_OPENDUE_LE.
CONDENSE L_OPENDUE_LE-DMBTR NO-GAPS.
L_TOTAL_TMP = L_TOTAL_TMP + L_OPENDUE_LE-DMBTR.
AT END OF KUNNR.
LOA_TOTALS-KUNNR = L_OPENDUE_LE-KUNNR.
LOA_TOTALS-LOA_TOTAL = L_TOTAL_TMP.
APPEND LOA_TOTALS.
CLEAR : L_TOTAL_TMP.
ENDAT.
ENDLOOP.
<font color="red">"* Get ageing data based slabs, and duedate.</font>
PERFORM AGEING_DATA.
LOOP AT L_BSID.
<font color="red">"* Move the data to final internal table.</font>
MOVE L_BSID-KUNNR TO FINAL_DATA-KUNNR.
MOVE L_LANDX TO FINAL_DATA-LANDX.
MOVE L_PSTLZ TO FINAL_DATA-PSTLZ.
MOVE L_NAME TO FINAL_DATA-NAME1.
MOVE L_PHONE TO FINAL_DATA-PHONE.
MOVE L_SORTL TO FINAL_DATA-SORTL.
MOVE L_BSID-ZTERM TO FINAL_DATA-ZTERM.
MOVE L_BUSAB TO FINAL_DATA-BUSAB.
READ TABLE LPD_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
IF SY-SUBRC EQ 0.
MOVE LPD_TOTALS-LPD_TOTAL TO FINAL_DATA-LPD_TOTAL.
ENDIF.
READ TABLE LOA_TOTALS WITH KEY KUNNR = L_BSID-KUNNR.
IF SY-SUBRC EQ 0.
MOVE LOA_TOTALS-LOA_TOTAL TO FINAL_DATA-LOA_TOTAL.
ENDIF.
READ TABLE AGE_DATA WITH KEY KUNNR = L_BSID-KUNNR.
IF SY-SUBRC EQ 0.
MOVE AGE_DATA-CURAMT TO FINAL_DATA-CURAMT.
MOVE AGE_DATA-AMT1 TO FINAL_DATA-AMT1.
MOVE AGE_DATA-AMT2 TO FINAL_DATA-AMT2.
MOVE AGE_DATA-AMT3 TO FINAL_DATA-AMT3.
MOVE AGE_DATA-AMT4 TO FINAL_DATA-AMT4.
MOVE AGE_DATA-AMT5 TO FINAL_DATA-AMT5.
MOVE AGE_DATA-AMT6 TO FINAL_DATA-AMT6.
ENDIF.
ENDIF.
APPEND FINAL_DATA.
CLEAR: FINAL_DATA.
ENDLOOP.
ENDFORM. <font color="red">" process_data</font>
</code></pre> -
Function module for finding number of records in table
Do we have any function module to find number of records in a table?
Thanks,
Shwetause the EM_GET_NUMBER_OF_ENTRIES. You just have to write your table name into the input table IT_TABLES in the TABNAME field
-
BADI or function module for updating open purchase orders
Hi all,
Does anyone know of a BADI or function module which can be used for updating item prices in open purchase orders?
All helpful answers are highly appreciated!
Regards,
MV1 ) execute this program in se38 .enter the input as transaction code for which you want list of User
Exit.
REPORT z_find_userexit NO STANDARD PAGE HEADING.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP® User Exits exists.
*& Tables
TABLES : tstc, "SAP® Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP® Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP® Modifications
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
2) Second way is to go to transaction code SE93 .enter transaction code click on display.
There you will see the package. Copy that package name.
Go to transaction code se84
Enhancements -customer exits-enhancementsu2014enter package there and execute.
You will get list of exits.
3) BAPI for PO change is
BAPI_PO_CHANGE -
Function Module for finding all the users in an org unit?
Hi,
is there a function module or a table by which we can find all the users within a purchasing group of purchasing organisatiopn unit.
Looking for a quick response.
Regards,
NehaPlease use the function module BBP_OM_STRUC_GET_USER_FROM_ORG. You have to pass the Org Ids in the parameter START_OBJECTS. Then USER_TAB will give you all the users.
Note:
OTYPE = 'O'.
OBJID = <Org Id say 50002323>.
Regards
Kathirvel
Edited by: Kathirvel Balakrishnan on Sep 24, 2008 2:25 PM -
Function module for finding differens in date
HI,
Friends can any one help me in finding out difference in date in select option .
i having problem when difference became negative .My requirement is to find out monthly report for a material . so i need to find out difference of date and need to add one month from the given date to require date.
Regards,
Mahendra.try the following fms
SD_DATETIME_DIFFERENCE
DAYS_BETWEEN_TWO_DATES
MONTHS_BETWEEN_TWO_DATES..
sample code is
REPORT ZDATEDIFF.
DATA: EDAYS LIKE VTBBEWE-ATAGE,
EMONTHS LIKE VTBBEWE-ATAGE,
EYEARS LIKE VTBBEWE-ATAGE.
PARAMETERS: FROMDATE LIKE VTBBEWE-DBERVON,
TODATE LIKE VTBBEWE-DBERBIS DEFAULT SY-DATUM.
call function 'FIMA_DAYS_AND_MONTHS_AND_YEARS'
exporting
i_date_from = FROMDATE
i_date_to = TODATE
I_FLG_SEPARATE = ' '
IMPORTING
E_DAYS = EDAYS
E_MONTHS = EMONTHS
E_YEARS = EYEARS.
WRITE:/ 'Difference in Days ', EDAYS.
WRITE:/ 'Difference in Months ', EMONTHS.
WRITE:/ 'Difference in Years ', EYEARS.
INITIALIZATION.
FROMDATE = SY-DATUM - 60.
<u><i><b>DATE DIFF W/O FM</b></i></u>
LOOP AT itab.
v_number_of_days = itab-date2 - itab-date1.
IF v_number_of_days > 1.
DELETE itab.
ELSE.
*-- Do something else.
ENDIF.
ENDLOOP.
regards
navjot
REWARD IF HELPFULL
Message was edited by:
navjot sharma -
Function module for finding related IDOCs of a document
Hi All,
I have a requirement where the inout will be shipment numbers. The expected output is the list of all the IDOCs that are related to the shipments. I know that this is a replica of the WE09 functionality but the users will not have access to WE09 and more over WE09 takes a long time to give this result.
My expectation is someting like the relationship in the "Services for objects2 that we have in the document which will give this detail very quickly.
I know one function module (WFMC_PROTOCOL_GET) which will give the list of outbound IDOCs if we know the output type and the shipment number. Also there is another function module GOS_EXECUTE_SERVICE which will do very similar to the servie for objects. But I need to know exactly the class or function module which will give me the relationship output alone so I can use this for further processing.
Also kindly let me know if there is some other standard way of looking at this requirement.
regards,
Vijay VVijay,
You can use FM 'DRB_NEIGHBOURS_GET' for the required functionality . Here is sample code :
DATA : L_BORIDENT TYPE BORIDENT ,
T_RELATIONS TYPE TABLE OF BORIDENT .
L_BORIDENT-OBJKEY = Delivery_no . "Document no
L_BORIDENT-OBJTYPE = 'LIKP' . "Object type e.g. LIKP , BUS2025
CALL FUNCTION 'DRB_NEIGHBOURS_GET'
EXPORTING
BORIDENT = L_BORIDENT
TABLES
T_RELATIONS = T_RELATIONS.
Linked Idoc type will be in table T_RELATIONS with OBJTYPE value equal to 'IDOC' .
- Tushar Shukla -
Function module for finding sales order GT total value(vbak-netwr)
Can anyone tell which function module is used to find the Sales order greater than the input parameter which is total value(vbak-netwr).Output should be the details of sales order satisfying the condition.ie greater than the total value.
Hi chandra
I hope you are giving the logic to the ABAP'ers . By giving the input and the outputs. So here , VBAK-NETWR are related to functional consultants .
Based on the requirement , SD,FI etc the give the logic but mostly it is related to SD consultants only
Reagrds
Srinath -
Urjent-Any function module for finding Sales order, Delivery and Invoic
Hi Experts,
I am having selection screen like
Sales order
Delivery
Invoice
Customer
If i give sales order
Delivery and Invoice should pull
If i give delivery
sales order and Invoice should pull
If i give Invoice
sales order and delivery should pull
If i give customer
all customer related data should pull
Do we have any function modules to meet this reqirement?
If we have please provide function modules.
Thanks,
mahe
Edited by: Rob Burbank on Mar 30, 2009 4:17 PM
Edited by: mahahe on Mar 31, 2009 9:12 PMYou can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
thanq -
Who has a find Open Path plug-in for CS4 Illustrator on WinXP and a close path also?
Can anyone lead me to a plug-ins for finding open paths and closing them in CS4 on WinXP?
ThanksJust a thought, but, have you tried using Live Paint?
-
Hi Experts,
Is there any BAPI or Function Module to find Openning balance based on fiscal year, company code, GL account and cost center.
Thanks In Advance.
Regards,
Praveen.Hi praveen kumar,
this is sudharsan, working on abap, here i have an urgrnt requirement, that i want to display, Opening and closing balance for given GL a/c, comp code and fiscal year.
could u plz give me the solution, it is very urgent for me.
my id is : [email protected]
regards,
sudharsan.
Maybe you are looking for
-
Automation in saving a image file with a specific max file size
Hi everyone, I hope someone can help me by this. Background info: We got several image files every 2 weeks which should be edited and mainly reduced in size for web purpose. This work needs 1 work day for one man/woman to do, because he/she has to op
-
When to change COMPATIBLE parameter while upgrading to Oracle 11G
We are planning to upgrade from Oracle 10.2.0.4 on AIX to Oracle 11.2.0.2 soon. While reading oracle upgrade documents and from oracle upgrade blog, it is mentioned that once we change compatible parameter, we will not be able to catdwgrd.sql to down
-
Had to disconnect extra USB stuff
I tried to install Windows XP and failed many times with rebooting.. somehow I thought that my external harddrives might have something to do with it. It helped a lot to unplug every USB plug except keyboard and mouse.. Just a suggestion..
-
Your experience about Standby Database (Logical).
Hi, As expressed in the subject of the thread, I'd like to get some feedback about Logical Standby. One of the databases (A) here has a setup with a Physical Standby (B). In order to lighten the workload on A, i want to "upgrade" B to a Logical Stand
-
Help! Error when data merging multiple records per page
I managed to get one record per page to display great. When I try to insert the text box into my master page and run to create multiple entries per page it gives me only one result: Any ideas on where I'm going wrong?