Getting Sales Employee details in Sales Order
Hi all
My customer is not implementing HR module, but they want to get the details of sales employee responsible for each sale in the sales order. Please let me know how do we do it
Regards
For your requirement, you needn't to implement HR-Module.
To Create Sales Personnel in SAP
T. Code: VPE1
You have to Maintain Parner Determination in SPRO:
SPRO --> IMG --> SD --> BAsic Functions --> PArtner Determination -->SEt up Partner Determination
As you want it in Sales Order (say, At Header), Click:
-->Set Up Partner Determination for Sales Document Header
Select TA - Standard Order.
Now, From Left-hand side tree, click on:
Partner determination procedure assignment.
Here assign TA to your Sales Doc type (Say, OR - Sales Order).
Again from Left-hand tree, select
Account groups - Function Assignment
Here, Linl all Customer Acct Grps to PE/ VE
Now in Sales Order (T. Code: VA01/ 02), to include Sales Employee:
Goto --> Header --> Partner
here, in Column Partner. Function: Select VE/ PE as defined for Sales Employee.
Best Regards,
VP
Similar Messages
-
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 -
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 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 -
How to get sales order data in substitution of fi-docu from GM posting ?
How to get sales order data in substitution of FI documents from goods movement posting?
When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
Do you have better solution or idea for this? Please help me. Thank you!Hello 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 -
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. -
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. -
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 -
How to get sales order number before saving in VA01 by using parameter
Hi,
Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
can you please suggest how to do it?
Thanks & Regards.
Rahul VerulkarHi,
In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
Thanks & regards,
Rahul Verulkar -
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 -
FM to get sales order details with billing document .
hi ,
is there any standard FM or BAPI to get the sales order details with input as billing document ?
i have the billing document number now i need to get the sales order number and its details ..
is that possible ..
i very well know how to get it by using query, i need standard FM.
Points will be awarded for sure , if it helps .
Thanks and regards
JKHere is the list of BAPIs
BAPI_QUOTATION_GETDETAILBOS
BAPI_INQUIRY_GETDETAILBOS
BAPI_SALESORDER_GETDETAILBOS
SALES ORDER->
BAPISDORDER_GETDETAILEDLIST Sales Order: List of All Order Data
BAPI_ORDER_CHANGE_STATUS_GET Change status for order
BAPI_SALESDOCU_CREATEFROMDATA Creating a Sales Document
BAPI_SALESORDER_CHANGE Sales Order: Change Sales Order
BAPI_SALESORDER_CREATEFROMDAT1 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales Order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create sales order, no more maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all orders for customer
BAPI_SALESORDER_GETSTATUS Sales order: Display status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order -
BAPI to get sales order details
Hi guys
I have copied a print program for outbound delivery (vl03n) and now i wanna use the same to get the details for an inbound delivery (vl33n). Obviously I need to change the logic, so i have taken the delivery num lips-vbeln and got the ref doc lips-vgebl and got the PO ekkn-vbeln anf now I have the sales orfer vbap-vbeln. The Question is i need the sales order detail like the vendor address name ship to party etc, is there a good bapi that gets the sales order details? I have tried the foll but they dont help
BAPISDORDER_GETDETAILEDLIST
BAPI_SALESORDER_GETDETAILBOS
BAPI_ALM_ORDER_GET_DETAIL
Does any one know of a better method to get the sales order detail? Maybe if some one could tell how to do it without a bAPI?
Rgds
Sameercheck BAPI_SALESORDER_CREATEFROMDAT2
MOVE 'TA' TO L_HEADER-DOC_TYPE.
MOVE 'ABC' TO L_HEADER-SALES_ORG.
MOVE '10' TO L_HEADER-DISTR_CHAN.
Sold-to AG partner mandatory fields
MOVE 'AG' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
Ship-to WE partner mandatory fields
MOVE 'WE' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
MOVE 'DEXABC' TO L_ITEM-MATERIAL.
APPEND L_ITEM.
partner roles 'RE' and 'RG' (bill-to-party) -
How to get Sales Order Partner Details at Item Level
Hi,
Is there any FM/BAPI to get the Order Partner Details at Item Level, using the Sales Order Number ?
ThanksVBPA is the best table.
You can query that table
But you should be carefull about item number:
in POSNR, if you observe the entries, you will find one entry with '000000': This corresponds to header record and the rest is at item level.
Thanks
Kiran -
Bapi or Fm to get sales order details
Hi,
can any one tell me a bapi or fm to get the sales order header and partner data?
plz help.
Himanshucheck BAPI_SALESORDER_CREATEFROMDAT2
MOVE 'TA' TO L_HEADER-DOC_TYPE.
MOVE 'ABC' TO L_HEADER-SALES_ORG.
MOVE '10' TO L_HEADER-DISTR_CHAN.
Sold-to AG partner mandatory fields
MOVE 'AG' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
Ship-to WE partner mandatory fields
MOVE 'WE' TO L_PARTNER-PARTN_ROLE.
MOVE '101175' TO L_PARTNER-PARTN_NUMB.
APPEND L_PARTNER.
MOVE 'DEXABC' TO L_ITEM-MATERIAL.
APPEND L_ITEM.
partner roles 'RE' and 'RG' (bill-to-party) -
Get Sales Orders from R/3 to CRM
Hi,
I want to get a list of the latest 3 sales orders which were placed for a Business partner.
The Sales orders are being created in R/3 and i want to be able to get this data into the CRM system.
The CRM middleware is not configured to sync R/3 to CRM.
How can i do this?
Regards
ShivaniHi Shivani,
I am not sure whether I understood your question or not. But if you want to use standard MW to exchange the data then you need to do the following.
I am assuming your R/3 and CRM are connected to each other ( check the same using tr. SM50 and test the connection from one system to other system)
1> check the queues R3A* & CSA* are registered in transaction SMQR
2> check the tr. SMQS for your destination system.
3> check for the site R/3 - OLTP and check for the subscription ALL BUSINESS TRANSACTION (MESG) Subscripition. - > this is for data transfer from CRM to R/3.
4> define the no. range for transactions and transaction types etc.
then you can load the object SALESDOCUMENT using the transaction R3AS - put some filter for this adaptor object so that it will bring only those transaction which you want to.
Reffer to the Best practice guide for further details. you can get this in site help.sap.com.
Hope this will help.
Thanks,
Vikash. -
Error using BAPI_BUSPROCESSND_CREATEMULTI, how to get sales order number
Hi all, i am using the BAPI BAPI_BUSPROCESSND_CREATEMULTI to create a sales order of type ZWEB in CRM. I am using HEADER, INPUT_FIELDS , ITEM , CREATED_PROCESS and RETURN
tables. In the CREATED_PROCESS i am getting the GUID but no value for object id. and in return table i find the error mesages as "no status object available for unknown object", "A log has been generated for single document", "no status object availabe for unknown object".
what mistake i am doing? i want to create a sales order in SAP CRM and get the sales order number as the output. am i using correct bapi. many people suggested of using bapi BAPI_BUSPROCESSND_SAVE....i dont know how to use it and what values i should pass to the objects_to_save paramter of this bapi.
here is my code please help me
***TABLES
DATA: IT_HEADER TYPE TABLE OF BAPIBUS20001_HEADER_INS.
DATA: IT_INPUT_FIELDS_FILL TYPE TABLE OF BAPIBUS20001_INPUT_FIELDS.
DATA: IT_ITEM TYPE TABLE OF BAPIBUS20001_ITEM.
***WORK AREA
DATA: WA_INPUT_FIELDS TYPE BAPIBUS20001_INPUT_FIELDS.
DATA: WA_HEADER TYPE BAPIBUS20001_HEADER_INS.
DATA: WA_ITEM TYPE BAPIBUS20001_ITEM.
DATA: IT_EV_GUID_32 TYPE GUID_32.
DATA: IT_EV_GUID_32_1 TYPE GUID_32.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
EV_GUID_32 = IT_EV_GUID_32.
WA_HEADER-GUID = IT_EV_GUID_32.
WA_HEADER-PROCESS_TYPE = 'ZWEB'.
WA_HEADER-DESCRIPTION = 'WEB ORDER'.
WA_HEADER-CREATED_BY = 'SAPUSER
APPEND WA_HEADER TO IT_HEADER.
WA_INPUT_FIELDS-REF_GUID = IT_EV_GUID_32.
WA_INPUT_FIELDS-REF_KIND = 'A'.
WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_H'.
WA_INPUT_FIELDS-LOGICAL_KEY = '1'.
WA_INPUT_FIELDS-CHANGEABLE = ' '.
WA_INPUT_FIELDS-FIELDNAME = 'PROCESS_TYPE'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'GUID'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'DESCRIPTION'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'CREATED_BY'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
REFRESH: CREATED_PROCESS.
CALL FUNCTION 'GUID_CREATE'
IMPORTING
EV_GUID_32 = IT_EV_GUID_32_1.
WA_ITEM-GUID = IT_EV_GUID_32_1.
WA_ITEM-NUMBER_INT = '10'.
WA_ITEM-ORDERED_PROD = '90000000'.
WA_ITEM-ITM_TYPE = 'ZTAN'.
WA_ITEM-MODE = 'A'.
APPEND WA_ITEM TO IT_ITEM.
WA_INPUT_FIELDS-REF_GUID = IT_EV_GUID_32_1.
WA_INPUT_FIELDS-REF_KIND = 'A'.
WA_INPUT_FIELDS-OBJECTNAME = 'ORDERADM_I'.
WA_INPUT_FIELDS-LOGICAL_KEY = '1'.
WA_INPUT_FIELDS-CHANGEABLE = ' '.
WA_INPUT_FIELDS-FIELDNAME = 'GUID'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'NUMBER_INT'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'ORDERED_PROD'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
WA_INPUT_FIELDS-FIELDNAME = 'ITM_TYPE'.
APPEND WA_INPUT_FIELDS TO IT_INPUT_FIELDS_FILL.
REFRESH: created_process.
CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
TABLES
HEADER = IT_HEADER
INPUT_FIELDS = IT_input_fields_fill
ITEM = IT_ITEM
CREATED_PROCESS = CREATED_PROCESS
RETURN = RETURN.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = RETURN1.
Edited by: jessica sam on Dec 11, 2008 5:23 AMHi Jessica,
I am not able map billing plan details for BAPI_BUSPROCESSND_CREATEMULTI.
If u done alreay please guide or send program for that.I will be grateful for you.
Regards,
Dilip
Maybe you are looking for
-
Unable to authenticate from 10.5 client to 10.5 Server to mount SMB or AFP
We have been banging our heads for some time now and have no idea what is going on. Here's the scenario: We have a 10.5.6 Server bound to an Active Directory Domain The Server's role is: Connected to a Directory System We have ensured that Active Dir
-
How to avoid the presence of element in the Destination file if the value is empty
Hi, I am using a map, in which Source is an XML File, Destination is a FlatFile For Eg: Input File <Name> FirstName>aaa</FirstName> <LastName>bbb</LastName> </Name> Output File FirstName LastName aaa bbb Destination Schema is also
-
want to know amount detalis for vendor vendor creation involves purchase organization , account etc. when a vendor do some finicial transaction then that amount is stored in some table . Can we find out the transaction ( amount ) done by vendor us
-
In itunes i don't see the possibility to synchronise the agenda from the pias
In Itunes I don't see the possibility to synchronise the agenda from the Ipad anymore. What can I do
-
Hi there, I have a template page which is based purely in CSS and I need that template to be used by my client in Contribute, the only problem is that when page is previewed in Contribute the layers are all on top of each other in one line making it