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 PM
You can use VBFA table, right? in the FM also, you can find the same logic, like pulling from VBFA table.
thanq
Similar Messages
-
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 -
Sales order, Delivery and Invoice changes history tables
Dear All,
I want to know how to find out the changes done in Sales Order, Delivery and Invoice.
As far as sales order is concerned, I know CDHDR and CDPOS are tables can be used to find out the changes.
But I am not sure about the "Object ID". Where we need to find out this Object ID?
In the Data element "VBELN_VA" "Change Document" option has been checked under "Further Characteristics" tab.
Please confirm about the "Object ID".
Similarly give inputs for Delivery and Invoice change history also.
Regards,
MullairajaHi,
Could you please explain, how to use these programs?
Regards,
Mullairaja -
Function module for open sales order and open PO
hi all,
can anyone please tell me that is there any function module to get open sale order and also for open purchase order?
regards saurabh.Hi ,
In EKPO Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Purchase Order Qty.
In MSEG Table u select this fields Purchase Document no and Item no of Purchsing Document , Material no , and Qty.
Both Tables having Purchase Document no , So Purchase Doucment no throguh u will get the Material and qty , Finally u Subract the both Material Qty's .
u will get the Open Po For particular Material.
If ur not getting ,Inform me .
Regards ,
Shankar GJ -
Function module for Open Sales Orders.
Can u any one tell me is there any standard function module to
retrieve OPEN-SALES orders. I tried to debug VA05 but not of use...
Thanks in advance,
Sanjay.hi
you can get open sales orders from vbuk and vbup
SELECT
A~VBELN
A~GBSTK
B~GBSTA FROM VBUK AS A
INNER JOIN VBUP AS B
ON AVBELN = BVBELN INTO TABLE T_OPENS
FOR ALL ENTRIES IN T_VBELN WHERE A~VBELN = T_VBELN-VBELN
AND A~GBSTK IN ('A','B')
AND B~GBSTA IN ('A','B').
in t_vebeln table is haveing sales orders by user selection you can get it like this
regards,
varma -
BAPI or Function Module to find Sales Order's of a Sales Group through Employee
Dear Experts,
Is there any BAPI / FM to find out the sales order's belonging to an sales group to which an sales employee is assigned, by providing that sales employee id as input ?
If not, what is the logic that we should go through to get that details ? What tables should be connected (like VBAK) to get those details ?
Thanks and Regards,
Seeker.Dear Seeker,
1) Configuration (SPRO)
a) Goto transaction code SPRO > Sales and Distribution > Sales > Lists > Set Updating Of Partner Index
b) Insert transaction group (TrG) = 0 and partner function (Funct) = PE
2) Create sales order with sales employee
3) Use FM RV_SALES_DOCUMENT_VIEW_3 (see below), you may get the result from table POSTAB.
VBCOM-VKORG = <Sales Org>
VBCOM-VTWEG = <Dist Channel>
VBCOM-SPART = <Division>
VBCOM-PARVW = 'AF'
VBCOM-KUNDE = <Sales Employee>
VBCOM-AUDAT = <From Date>
VBCOM-AUDAT_BIS = <To Date>
VBCOM-TRVOG = '0'
VBCOM-VBALL = 'X'
VBCOM-STAT_DAZU = 'X'
VBCOM-NAME_DAZU = 'X'
SELTAB-KTEXT = 'VKGRP'
SELTAB-VONSL = <sales grp>
SELTAB-BISSL = <sales grp>
SELTAB-STEPL = '1'
BSTKD_FLAG = 'X'
CALL FUNCTION 'RV_SALES_DOCUMENT_VIEW_3'
EXPORTING
VBCOM = VBCOM
KONV_FLAG = KONV_FLAG
BSTKD_FLAG = BSTKD_FLAG
IMPORTING
TIME = REFE
TABLES
LVBMTV = POSTAB
LSELTAB = SELTAB.
Thanks
Hock Lin -
COGS for occasional Sales orders (Delivery / AR Invoice)
Currently the account determination for ALL items is set by Item group / Item.
There is a requirement for less than 1% of all item Sales Orders / AR Invoices to be processed with a different COGS account to the automatic determination. (this circumstance is not necessary related to specific items, it could occur with any items).
The process will be to enter a SO, Delivery / AR invoice (all transactions could be entered by different people).
Any suggestions on how to process the requirements seemlessly, for the operator and affect the correct COGS account/s?hi,
In delivery document ,Click open form setting tick mark COGS accounts as visible & active both in table and row formats,It will shows Cogs accounts in rows,Enter/change manually COGS accounts.
Hope it will solve the problem
Jeyakanthan -
Any function module or bapi to get sales order number and invoice number?
hi all,
with delivery order number provided, do we have any function module or bapi to get sales order number
and invoice number?
thanks.Hi,
Check
BAPI_SALESORDER_CREATEFROMDAT1
BAPI_REMUREQSLISTA_CREATEMULT Agency Business: BAPI Create Invoice Lists from Vendor Billing Documents
BAPI_REMUREQSLISTB_CREATEMULT Agency Business: BAPI Create Invoice Lists from Payment Documents
BAPI_REMUREQSLISTC_CREATEMULT Agency Business: BAPI Create Invoice Lists from Posting Lists
BAPI_REMUREQSLIST_CHANGEMULT Agency Business: Change Invoice List Documents BAPI
BAPI_REMUREQSLIST_GETLIST Agency Business: BAPI Determine Detailed Data for Invoice List Documents
BAPI_REMUREQSLIST_RELEASE Agency Business: BAPI Release Invoice List Documents to FI
Edited by: Neenu Jose on Nov 26, 2008 8:53 AM -
Is there any function module for purchase order change
Hi Experts,
Is there any function module for purchase order change or i need to do new recording in me22n.
Thanks,
SenthilHi
Function module <b>BAPI_PO_CHANGE</b> enables you to change purchase orders. The Change method uses the technology behind transaction ME22N.
Regards,
Viven -
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 -
Function module for reteriving Purchase order values
hi,
I there any function module for reteriving the Purchase order Valuesbetter to put ur logic /requirement on table EKKOEKPOEKBE.
Regards
Prabhu -
QM : is there any function module to find inspection lot characterstics
Hi All,
is there any function module to find all characterstics for an inspection lot.
i need exact data which qe51n transaction is fetching .
thanks in adv ,
VarmaHi uvs,
1. we can use the fm BAPI_INSPOPER_GETCHAR.
regards,
amit m. -
Is their any function module for deleting condition record i am trying
Hi Experts,
Is their any function module for deleting condition record i am trying this way.......
DATA: TABLE (4) TYPE C.
DATA: KNUM LIKE KONH-KNUMH
DATA: K_VEWE LIKE T681-KVEWE VALUE 'A'.
DATA: T681_STR LIKE T681.
DATA: LV_NUM TYPE I.
GET PARAMETERS
PARAMETERS: TABNO LIKE T681-KOTABNR.
PARAMETERS: TESTMODE DEFAULT 'X' AS CHECKBOX.
REFRESH INT_KNUMH.
Select single * from T681 into T681_STR
where kvewe = K_VEWE AND
KOTABNR = TABNO.
IF SY-SUBRC NE 0.
WRITE: / 'No entry in T681 for number ', TABNO.
WRITE: / 'Check whether corresponding condition table exists.'.
EXIT.
ENDIF.
TABLE = T681_STR-KOTAB.
SELECT KNUMH FROM (TABLE) INTO KNUM.
SELECT SINGLE * FROM KONH WHERE KNUMH = KNUM.
IF SY-SUBRC NE 0.
INT_KNUMH-KNUMH = KNUM.
COLLECT INT_KNUMH.
ENDIF.
ENDSELECT.
DESCRIBE TABLE INT_KNUMH LINES LV_NUM.
IF LV_NUM EQ 0.
WRITE: / 'No inconsistent entries found.'.
WRITE: / 'Each record in the condition table has a corresponding.'.
WRITE: / 'entry in the KONH table.'.
EXIT.
ENDIF.
LOOP AT INT_KNUMH.
IF TESTMODE IS INITIAL.
DELETE FROM (TABLE) WHERE
KNUMH = INT_KNUMH-KNUMH.
IF SY-SUBRC = 0.
WRITE: / 'KNUMH =', INT_KNUMH-KNUMH(10), ' deleted from table ' ,TABLE.
ELSE.
WRITE: / 'DELETE: SY-SUBRC is', SY-SUBRC , ' FOR KNUMH = ' .
WRITE: INT_KNUMH-KNUMH(10).
ENDIF.
ELSE.
WRITE: / 'TESTRUN: KNUMH =', INT_KNUMH-KNUMH(10).
ENDIF.
ENDLOOP.
is their any Standerd Function module for comparing tables if the condition record not exist in it has to exit if it is their then compare those two tables if not exist in one table also that has to be delete the condition record
Please let me know .....Hi,
You can use Function module PRICING_CHECK to check condition record. Do a where-used list on it to see how to call it.
Regards
Kiran Sure -
Any Function module to find the vendor description
Any Function module to find the vendor description.
Regards
PaulHi,
Do you mean that you need the name and address details of the Vendor. you can get it in table LFA1.
regards,
Mahesh -
Hi is there any function module for radix conversion
Hi,
I need to convert number of base 36 to decimal number. Is there any function module for that.
i.e) z to 35
10 to 36
11 t0 37Hai,
This program perfectly converts a number from one number system to another number system.
REPORT Z_RADIX_CONVERSION.
PARAMETERS:
P_S_RAD(2) TYPE N, " Source Radix
P_D_RAD(2) TYPE N, " Destination Radix
P_S_NUM(5) TYPE C. " Source Number
*" Data declarations...................................................
Work variables *
DATA:
W_LEN TYPE I,
W_FACT TYPE I,
W_D_NUM(5) TYPE N,
W_T_LEN TYPE I,
W_NUM TYPE C,
W_NUM1 TYPE I,
W_REM TYPE I,
W_INDEX TYPE I VALUE 20,
W_T_NUM(30) TYPE C,
W_T_NUMBER(5) TYPE N.
IF P_S_RAD GE 1 AND
P_S_RAD LE 16 AND
P_D_RAD GE 1 AND
P_D_RAD LE 16.
IF P_S_RAD EQ 01 AND P_S_NUM CO '0 ' OR
P_S_RAD EQ 02 AND P_S_NUM CO '01 ' OR
P_S_RAD EQ 03 AND P_S_NUM CO '012 ' OR
P_S_RAD EQ 04 AND P_S_NUM CO '0123 ' OR
P_S_RAD EQ 05 AND P_S_NUM CO '01234 ' OR
P_S_RAD EQ 06 AND P_S_NUM CO '012345 ' OR
P_S_RAD EQ 07 AND P_S_NUM CO '0123456 ' OR
P_S_RAD EQ 08 AND P_S_NUM CO '01234567 ' OR
P_S_RAD EQ 09 AND P_S_NUM CO '012345678 ' OR
P_S_RAD EQ 10 AND P_S_NUM CO '0123456789 ' OR
P_S_RAD EQ 11 AND P_S_NUM CO '0123456789A ' OR
P_S_RAD EQ 12 AND P_S_NUM CO '0123456789AB ' OR
P_S_RAD EQ 13 AND P_S_NUM CO '0123456789ABC ' OR
P_S_RAD EQ 14 AND P_S_NUM CO '0123456789ABCD ' OR
P_S_RAD EQ 15 AND P_S_NUM CO '0123456789ABCDE ' OR
P_S_RAD EQ 16 AND P_S_NUM CO '00123456789ABCDEF ' .
W_LEN = STRLEN( P_S_NUM ).
W_T_LEN = W_LEN - 1.
DO W_LEN TIMES.
W_NUM = P_S_NUM+W_T_LEN(1).
CASE W_NUM.
WHEN 'A'.
W_NUM1 = 10.
WHEN 'B'.
W_NUM1 = 11.
WHEN 'C'.
W_NUM1 = 12.
WHEN 'D'.
W_NUM1 = 13.
WHEN 'E'.
W_NUM1 = 14.
WHEN 'F'.
W_NUM1 = 15.
WHEN OTHERS.
W_NUM1 = W_NUM.
ENDCASE.
W_D_NUM = W_D_NUM + W_NUM1 * ( P_S_RAD ** W_FACT ).
ADD 1 TO W_FACT.
SUBTRACT 1 FROM W_T_LEN.
ENDDO.
ELSE.
WRITE'Invalid Number'(003).
ENDIF.
ELSE.
WRITE'Enter radix between 1 and 16 '(002).
ENDIF.
W_T_NUMBER = W_D_NUM.
IF P_D_RAD = 1.
DO W_D_NUM TIMES.
WRITE'O'.
ENDDO.
ELSE.
WHILE W_T_NUMBER NE 0.
W_REM = W_T_NUMBER MOD P_D_RAD.
CASE W_REM.
WHEN 10.
W_T_NUM+W_INDEX(1) = 'A'.
WHEN 11.
W_T_NUM+W_INDEX(1) = 'B'.
WHEN 12.
W_T_NUM+W_INDEX(1) = 'C'.
WHEN 13.
W_T_NUM+W_INDEX(1) = 'D'.
WHEN 14.
W_T_NUM+W_INDEX(1) = 'E'.
WHEN 15.
W_T_NUM+W_INDEX(1) = 'F'.
WHEN OTHERS.
W_T_NUM+W_INDEX(1) = W_REM.
ENDCASE. " CASE W_REM.
SUBTRACT 1 FROM W_INDEX.
W_T_NUMBER = W_T_NUMBER DIV P_D_RAD.
ENDWHILE.
ENDIF.
WRITE:
/10 'The Equivallent number in Base'(001),
P_D_RAD,
'is',
W_T_NUM.
<b>Reward points if helpful .</b>
regards,
rama pammi
Maybe you are looking for
-
How to create ALV as a POPUP in abap web dynpro?
I have a requirement to display an ALV report as a popup for ESS application in HR module. Data fetching and binding is done in component controller WDINIT method and it is displaying ALV in ESS. Now my requirement is to show this alv as a popup in E
-
How to apply Password Protection On attachment send through mail from SAP
Hi All, I want to apply Password Protection on file send as an attachment from SAP on Email. I know how to send email from sap with attachment in it. A smartform is coverted to a attachment and send on email. But how can i apply password protecti
-
Is There a Programable Macro Language
Is there a programable macro language available for the iMac? I am looking for something that I can have resident in memory and be executable with a simple series of short cut keys that are not used by the OS. For example, I get tired of keying in my
-
I read on the adobe website that when you enable reader rights that you are limited to 500 responses when you post a form online. Is this accurate? Is there some way in which at 501 the form will no longer save with data in the form? Also I was to
-
Urgent help -can not access Documents (windows 7)
After some one renamed one profile and my documents (roaming profile and my documents redirected to network path too through group policy). Now , I can not open Documents. I got this message: "can't open this item It might have been moved, renamed