Any function to get sales order discount?
Dear all:
Is there any function module to get condition discount for Sales Order item?
I can view the discount value through TCode VK13 and found the value store in table A601.
I search the forum and most of the answer is CONDITION_RECORD_READ or BAPI_PRICES_CONDITIONS which is not working for my case.
Thanks.
Hi,
Try this!!!
*-- Set the BAPI read flag to fetch the condition values
lwa_view-sdcond = c_x.
*-- Populate the sales document to fetch the condition records
lwa_doc-vbeln = p_vbeln.
APPEND lwa_doc TO lt_docs.
*-- Get the condition records
CALL FUNCTION 'BAPISDORDER_GETDETAILEDLIST'
EXPORTING
i_bapi_view = lwa_view
TABLES
sales_documents = lt_docs
order_conditions_out = t_cond.
Hope this helps.
Regards,
Hemanth
Edited by: Hemanth Nandigam on Apr 17, 2009 1:50 PM
Similar Messages
-
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 -
How to get sales order data in R/3. Any FM?
Hi ,
Is there any FM in R/3 to get sales order data.
In CRM we use CRM_ORDER_READ to get the Header and Item details. Like wise FM in R/3 is required.
Actually I have to test 'Usage' in sales tab of VA01/VA02/VA03.
How to get the order details? what is the user exit for ORDER save?
If any body knows please do let me know.
Thanks and Regards
HarishHello Harish,
Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
Regards
Kaushal -
Function module to get Sales Order classification.
Hello everyone,
Can someone give me a function module to get Sales Order classification? Really appreciate it.Hi
Check the following BAPI's:
BAPI_OBJCL_GETDETAIL
BAPI_OBJCL_CHANGE
or use the fun module:
CLAF_CLASSIFICATION_OF_OBJECTS.
Reward points if useful
Regards
Anji -
What's the name of FM for getting Sales Order Header / Item Status info
Hello All:
Do you know what's the name of Function Module for getting Sales Order Header / Item Status Overview ? Any sample code will be very much appreciated.
Basically, I am trying to create a Webpage where user can enter the Sales Order document number and will return the Sales Order: Status Overview.
Thanks,
Dipankar BiswasThanks everybody ! Appreciate for your prompt response. I was also looking for some sample code, and I did find some on. And here is one. I still have to try the code, but here is for all your reference:
*& Report ZBAPI_SALESORDER_GETSTATUS *
*& Read and Display the Sales Order Items and Status of the Order *
REPORT zbapi_salesorder_getstatus NO STANDARD PAGE HEADING LINE-SIZE 200 LINE-COUNT 33(3).
TABLES: vbap. "Sales Document Item Data.
DATA: wa_bapireturn TYPE bapireturn,
wa_bapisdstat TYPE bapisdstat,
it_bapisdstat LIKE STANDARD TABLE OF wa_bapisdstat.
TYPES: BEGIN OF ty_mat_name,
matnr TYPE makt-matnr,
maktx TYPE makt-maktx,
END OF ty_mat_name.
DATA: wa_mat_name TYPE ty_mat_name,
it_mat_name LIKE TABLE OF wa_mat_name WITH KEY matnr .
PARAMETERS: p_vbeln LIKE vbap-vbeln DEFAULT 5573.
START-OF-SELECTION.
SELECT matnr maktx FROM makt INTO TABLE it_mat_name.
CALL FUNCTION 'BAPI_SALESORDER_GETSTATUS'
EXPORTING
salesdocument = p_vbeln
IMPORTING
return = wa_bapireturn
TABLES
statusinfo = it_bapisdstat.
IF wa_bapireturn IS INITIAL. " Successful Execution.
WRITE: / 'Document No: ' COLOR 1, 20 'PO Number : ', 40 'Status' , 50 'Delv.Stat',60 'Item No', 80 'Material', 90 'Material Description', 130 'Net Price' COLOR 2.
ULINE.
LOOP AT it_bapisdstat INTO wa_bapisdstat.
WRITE: / wa_bapisdstat-doc_number. " Sales Document Number.
READ TABLE it_mat_name INTO wa_mat_name WITH KEY matnr = wa_bapisdstat-material.
WRITE: /20 wa_bapisdstat-purch_no, " Customer Purchase Order Number
40 wa_bapisdstat-prc_stat_h, " Processing Status
50 wa_bapisdstat-dlv_stat_h, " Delivery Status
60 wa_bapisdstat-itm_number, " Item Number
80 wa_bapisdstat-material, " Material
90 wa_mat_name-maktx, " Material Description
130(10) wa_bapisdstat-net_price. " Net Price
CLEAR wa_bapisdstat.
ENDLOOP.
REFRESH it_bapisdstat[].
ELSE.
WRITE: wa_bapireturn-message.
ENDIF. -
Which table I can get sales order no from delivery numbar.
Hi,
I want sales order no from delivery no. right now I am using table VBFA where I am passing VBELN and POSNN and geting sales order no. but performance of select query is very poor bcouse I am not passing first two key fields in the select query.
Is there any other tablefrom where we can get sales order no. from delivery no. so that performance of report can be improved.
Thanks,hi,
sales doc header ( table VBAK ) copy to Delivery header table( LIKP)
sales doc item table ( VBAP) copy to Delivery item table( LIPS)
you can see this in copy control VTLA ,
now u want slaes doc no. from dilv doc. no.
so go to t-code se11.....
fill table LIKP u will get VBELN field for deliv doc no, & TERNR field for sales doc. no.
so if u want to call sales doc no from dilv doc no.. u can use table LIKP in ur report.
i hope it will help u. -
Partner function change in sales order
Hi,
I have partner function ZR (sales employee) defined for customer master. I enter a particular employee no 100 in the customer master. and subsequnetly the partner function ZR gets copied into a contract with value 100.
now another user is trying to change the value to 200 from 100, but the system is giving a message that partner function ZR not defned for partner procedure.
If i go to partner determination for sales order , then i see that there is no partner function ZR assigned for a patner procedure.
my question is that the above is happening due to lack of master data for emploee id 200 from HR module or is it that we have to maitain partner function ZR for sales order (I have seen that ZR is not maintained for sales order. ).Iam assuming that for contracts aslo, the config needs to be done in parnter determination for sales order.
regards
sachinHi Sachin,
I assume that you have configured the partner functions for Customer master including ZR, also enabled ZR for the partner procedure applicable for the sales document type.
If this is done, then the partner function ZR should be available for entry in the sales order.
Now the problem is that
You shoudl have assigned the partner function ZR to some account group, while creating this partner function, and customer 100 shoudl have belonged to this account group.
However the customer 200 whom you want to update as the new ZR doesnt belong to this account group.
You can use only those customers belonging to the account group which is linked to the partner function ZR as sales employees.
So find out the customers belonging to the account group, which is linked to the partner function ZR. Make sure their masterdata is correct for the sales area which you wnat to use. If all the things satisfy, then you should be able to use them as ZR partner in your sales document.
This should solve your problem.
Pls reward if this helps you to solve the problem -
Default Functional Area in Sales Order Line Items
Hi,
Is there any user exit that can be used to default Functional Area in Sales Order Line Items.
I tried mv45afzz but not working. Any idea and do let me know the field or structure effected.
Thanks.Hi Sathish
You can update table XVBAP from program SAPMV45A in program mv45afzz like code below:
FIELD-SYMBOL: <mytab> LIKE STANDRD TABLE OF VBAP.
ASSIGN (SAPMV45A)XVBAP TO <mytab>.
LOOP AT <mytab>.
ENDLOOP.
I hop it helps .
Kind regards
Carlos Machado -
How to get sales order information in COPA datasource
Hi All,
I wish to get sales order information like Customer, Sales office, Sales group etc in COPA datasource. Presently all this information is not available and the fields display blank value. Can you please guide me through the steps to achieve this.
Thanks in advance,
SanandaHi
They actually create Generic extraction for COPA modules..especially all finance modules. Hope you are aware of it and do you know the steps for COPA?
Any check all the below links as well lot many threads for COPA available. pls chek that as well
http://sap.seo-gym.com/copa.pdf
http://searchsap.techtarget.com/answer/Steps-for-a-generic-extraction-of-FI-CO-COPA-and-LO-in-SAP-BW
Problem with COPA extractor 1_CO_PA<...>
Delta Mechanism : COPA extractor
steps for FI-SL and CO-PA Extraction
COPA extraction steps for BI 7.0
This link would be help ful:
http://www.sap-img.com/business/copa-extraction-steps.htm -
Partner Function Structure in Sales Order
Hi All,
What is the Partner Function Structure in Sales Ordere (Item Level)?
(In which structure the partner functions are displays in sales order item level?)
Thanks in advance.HI Raja,
Thanks for your replay.
I did the same thing what ever u said, but the thing is while doing debugging the values are not showing in that structure. Like header and item data will available in KOMK and KOMP structurs, not in screen field strucuture. I am thinking that there may be some structure for partner functions like KOMP, KOMK.
Thanks -
Is there any function module getting the cpu type?
Is there any function module getting the cpu type?
I guess the database server...
I would like to get the SAP system cpu type as done in transaction st06 under system information.
Thanks. -
Is there any function to get baseline date
Dear all,
Is there any function to get baseline date according to the payment terms?
Thank you in advance.have a lokk here:
determine due date
A. -
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 -
How to get sales order data with GL tables
I want to get sales order details from my GL query. I need to get item number, quantity and customer PO from there. Here is my query from GL.
SELECT PH.po_header_id,
I.GL_DATE,
R.je_header_id JE_HEADER_ID,
R.je_line_num JE_LINE_NUM,
aeh.org_id ORG_ID ,
I.invoice_num TRX_NUMBER_C ,
ael.description COMMENTS ,
ael.ACCOUNTED_CR ACCOUNTED_CR,
ael.ACCOUNTED_DR ACCOUNTED_DR,
ael.code_combination_id CODE_COMBINATION_ID,
ael.currency_code CURRENCY_CODE,
ael.entered_cr ENTERED_CR,
ael.entered_dr ENTERED_DR,
PH.segment1 PO_ORDER_NUMBER,
GL.segment1 company,
GL.segment2,
GL.segment3,
GL.segment4,
GL.segment5 account
,ael.description
,PD.quantity_ordered, PD.amount_billed, D.quantity_invoiced, D.unit_price
FROM gl_import_references R, --ok
gl_je_categories jc,
ap_ae_lines_all AEL, --ok
ap_ae_headers_all AEH, --ok
ap_invoice_distributions_all D,
ap_invoices_all I,
ap_accounting_events_all AE,
po_releases_all PR,
po_headers_all PH,
po_distributions_all PD,
po_vendor_sites_all VS,
gl_code_combinations GL
WHERE 1=1
AND jc.je_category_name = aeh.ae_category
AND PR.po_release_id(+) = PD.po_release_id
AND PH.po_header_id(+) = PD.po_header_id
AND PD.po_distribution_id(+) = D.po_distribution_id
AND ael.third_party_sub_id = VS.vendor_site_id
AND AE.accounting_event_id = AEH.accounting_event_id
AND I.invoice_id = AE.source_id
AND AE.source_table = 'AP_INVOICES'
AND AEH.ae_header_id = AEL.ae_header_id
AND DECODE(ael.source_table,'AP_INVOICE_DISTRIBUTIONS', AEL.source_id,NULL) = D.invoice_distribution_id(+)
AND AEL.gl_sl_link_id = R.gl_sl_link_id
and ael.code_combination_id = GL.code_combination_idThen your query is completely wrong.
Your query is looking at Purchase Order tables.
If you want sales order data, you should be looking at OE tables (such as OE_ORDER_HEADERS_ALL, OE_ORDER_LINES_ALL etc.)
Sandeep Gandhi -
Is there any provision for viewing Sales Order at a plant level?
Salute All !
Is there any provision for viewing Sales Order at a plant level?
Please provide TCode or any other way.
Rgds
SrivastavHi
Go to SPRO>Sales & Distribution>Sales>Lists>Define selection criteria.
Select the Programme "SAPMV75A" , Trnsaction group=0 and pu display group=K and select the field =WERKS.
Hope it will resolve.
Regards
Sanjay
Maybe you are looking for
-
Moving Pages from one Page Group to Another Group
Hello, How do you move pages, styles, or items from one page group to another page group? On the same machine, I have three page groups called Production, Acceptance, and Test. Once I set up a page that I like on the page group Test, what is the best
-
Upgrade from Windows 8 Single Language to Windows 8.1
I need to upgrade from Windows 8 Single Language to Windows 8.1. It only give me any option to keep personal files only
-
Posting a chart created with Pages
I created a chart. I want to post it on an internet board. I see no way to convert this chart to jpeg, gif or anything else that is usable. How do you add a chart created with Pages to an internet post or a blog? Thank you in advance for any help. I
-
Slow MBP after Yosemite install and other concerns
Hi There are a few discussions on this topic, they did not help due to the fact that I have no clue what to do or if I even have a problem. The problem: My MBP is slower after I installed Yosemite, sometimes the wheel of death pops up and freezes wha
-
Workflow Versions in Version History
Does anyone know how to not show workflow updates in the version history. I only want history to show actual user edits not what a workflow changes.