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 Verulkar
Hi,
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
Similar Messages
-
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 -
How to get sales order number when it is created in VA01
hai experts,
i have a requirement , when i create a sales order using transaction VA01 and save the transaction number , after saving i want to catch the sales order number and use in some other fucntion moudle, how can i do that , should i use the events or any other methods to do the same
regards
m.aYou can call you Z function module either from the workflow or from a BADI' where you can access the newly created sales order the BADi name is BADI_SD_V46H0001 and the method that you need to check is
EXIT_SAPLV46H_003 Customer Function when Creating/Changing Header
You can even call the FM from workflow too, but aganin for tht you need to create a ZBOR, if at all you are using a standard Business object and you hvae to create a new task and include that new task in the workflow by creating a new background Activity step. which I personally feel that you eed to put some more effort to fix the issue.
Instead it is simple and sweet to call that function module from the Method which mentioned. where you can acess the sales document number tooo check int he method parameters. -
Get purchase order number before saving
Hi All,
I am working on Purchase order Creation.
I want to know the purchase order number before it was saved.
I have used NUMBER_GET_NEXT function Module.But it is based on Number range.
I dont want to get based on Number Range.
I want to get the Get next number based on the Documnet TYpe.
Is there any possiablity to get that.If yes please let me know.
Thanks,
Swapna.Hi,
data : lv_ebeln type ebeln.
Select single MAX( EBELN ) from EKKO into LV_EBELN.
Next PO Number = LV_EBELN + 1.
Try this.
This will work if maintain only one number rage object for PO Number.
Thanks,
Durai.V -
How to get sales order number based on purchase order
hi,
what is the transaction code to find the sales order number based on the purchase order number
Regards,
MuraliHi,
Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
Prase -
How to get sales invoice number when you know print spool id
I'm using a version of program rstxpdft4 to download printed invoices to pdf. I'd like to include the invoice number in the name of the download file, but I don't know how to determine that value. I'm getting the spool id from table TSP01.
Thanks,
DenHi,
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 -
WMS : How to Process Sales Order Released before Turning on WMS
Hello Gurus,
How to process sales orders released before WMS enable flag is turned on in the new WMS enviournment in Oracle 11.5.10 ?Helios,
Thanks for the document.
I m looking for how to perform Pick confirm transactions for already printed Pick slips before WMS enabled flag is turn on for the org.
One option is to close all the deliveries but if there is no on hand at that point the they will remain option.
Other option is to Back order those deliveries and re release them post wms enable flag is turned on... The only issue i see here is that if there are more new orders for one of the items and the orders are released then which orders will get allocated/reserved if there is limited on hand quantity to statisfy the SO need.
Let me know if you can think off some alternative solution.
Apprecite help !!
Thanks,
Sam -
How to get purchase order number from delivery number?
hi all,
how to get purchase order number and item if i have only delivery.
and in same way how to get po number and item if i know only batch number.
kindly give me some solution i need this urgently.
thanks in advance.Check the logic below:
* Selecting the Sales Documents from VBFA for corresponding Invoice
SELECT vbelv
posnv
FROM vbfa
INTO TABLE gt_itab3
WHERE vbeln EQ gt_itab5-vbeln
AND posnn EQ gt_itab5-posnr
AND vbtyp_n EQ 'J'.
IF sy-subrc EQ zero.
SORT gt_itab3 BY vbelv posnv.
ENDIF.
ENDIF.
IF NOT gt_itab3 IS INITIAL.
* Selecting the Purchase Orders from VBFA for corresponding Sales Documents
SELECT vbeln
posnn
FROM vbfa
INTO TABLE gt_itab4
FOR ALL ENTRIES IN gt_itab3
WHERE vbelv EQ gt_itab3-vbelv
AND posnv EQ gt_itab3-posnv
AND vbtyp_n EQ 'V'.
IF sy-subrc EQ 0.
SORT gt_itab4 BY vbeln posnn.
ENDIF.
ENDIF.
Batch number will be there in delivery item.
Regards
Kannaiah -
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 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 -
How to unlock sales order number after changing its line item statuses.
hi all,
my requirement is i am changing the status of the double
clicked sales order which is showing in ALV grid display
before that i am locking that sales order using FM
CALL FUNCTION 'ENQUEUE_EVVBAKE' and for
changing the status i am using FM
CALL FUNCTION 'STATUS_CHANGE_EXTERN'
which doesnt have commit statement inside this FM so
i have explictly written this commit statement if this FM
gives SY-SUBRC = 0 but with this statement it unlock my
sales order because of the commit functionality.
also this FM is in loop for all line items for that sales order
please help me with that!!!!Hi,
I have created delivery against sales order.
While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
Sales order (SO1) - Material (Mat1) - qty (15 ea)
Delivery against sales order (Del1) - batch split: batch1 - 10 ea
batch2 - 5 ea
In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
del no. Item No. Material Qty Batch no Sales Order no Sales Order Item no
1. DEL1 10 Mat1 10 ea batch1 SO1 10
2. DEL1 20 Mat1 5 ea batch2 ______ ____
Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
Hope this clarifies the issue faced.
Regards,
Ankush -
How to trace sales order number from delivery number, when batch is split
Hi All,
I have created a Sales Order and a Outbound Delivery against the sales order.
While creating the Outbound delivery, I have split the qty in two batches.
Now when I go in table LIPS, and search on the basis of the Delivery number, I get two rows, one for each batch. But here the sales order LIPS-VGBEL, and Sales order item no (LIPS-VGPOS) is updated only for the 1st batch line item, but is not updated for the second batch line item.
Please help me so that on the basis of the delivery number, i will be able to find record from tables for sales order for both the line items (i.e. for each batch).
Immediate help would be appreciated.
Thanks in Advance.
AnkushHi,
I have created delivery against sales order.
While picking (during delivery PGI), I selected two batches to suffice the delivery qty. Please refer the example quoted below.
Sales order (SO1) - Material (Mat1) - qty (15 ea)
Delivery against sales order (Del1) - batch split: batch1 - 10 ea
batch2 - 5 ea
In table LIPS: when I enter delivery number as "Del1" and execute, I get 2 records:
del no. Item No. Material Qty Batch no Sales Order no Sales Order Item no
1. DEL1 10 Mat1 10 ea batch1 SO1 10
2. DEL1 20 Mat1 5 ea batch2 ______ ____
Thus in the 2nd record, the Sales order no.(LIPS-VGBEL) and sales order item no. (LIPS-VGPOS) does not get updated.
I have to develop a report to display the Sales Order number and sales order line item number for each batch of the Delivery for the same item number. Please guide me to know how I can get the same.
Hope this clarifies the issue faced.
Regards,
Ankush -
Q60: How to report sales order number against in voice number
Dear All,
I have this simple report but need to include the relevant sales order in the column aftero the invoice number.
I know it is the base doc but do not know how to build it in.............
SELECT
t0.docduedate as 'Invoice Date',
t0.docstatus as 'Open/Closed',
t0.docnum as 'Invoice Number',
t0.numatcard as 'Customer Ref. No.',
t0.u_rbdelivery as 'Tracking Number',
t0.doctotal as 'Invoice Value',
t0.cardcode as 'Customer Code',
t0.cardname as 'Customer Name',
t0.address2 as 'Delivery Address'
FROM
oinv t0
WHERE
t0.docstatus = '[%0]' and
t0.doctype = 'I' and
left(t0.cardcode,1) = 'K'
Many thanks for any help.
RobinHi,
You have to use following tables to get the data VBRK (Billing Header), VBRP (Billing Item), KNA1, KNB1 and KNVV (Customer Master Tables), VBAK (Sale Order Header) and FPLTC(Payment cards table)
First pass the input data for example
Customer reference number into VBRK- KUNNR and Date into VBRK-FKDAT and get the relevant VBLENu2018s for the customer.
Pass VBRK-VBELN value into VBRP-VBLEN and get VBRP-AUBEL (Sale order number).
Pass customer number into KNA1-KUNNR and get KNA1-ADRNR (for fetching the address details for the customer) pass this
ADRNR into ADRC-ADDRNUMBER And get all the address details of the customer.
Similarly pass VBRP-AUBEL into VBAK-VBLEN and get VBAK-FPLNR pass this value into FPLTC-FPLNR and get all the card relevant details.
Hope this helps.
Revert back in case of clarifications.
Regards,
Sharan -
Hi,
We have a scenario wherein we create shipment cost documents against delivery. As a result of shipments fully transferred, a PO for freight vendor is automatically created and a service entry sheet confirmation happens. As a result of service entry sheet confirmation, we have Financial accounting, Controlling and profitability analysis documents created. We have a requirement wherein we need to have the characteristic “sales order number (KAUFN)” populated in the profitability analysis document created as a result of service entry sheet confirmation.
Could someone please advice how could this be attained in COPA. Thanks for your help in advance.
Regards,
SandeepHi Ajay,
Thank you for the quick update.
The document is updated to COPA through OKB9 settings. The profitability segment is updated with fields like customer, product, company code, plant, sales area data, profit center, etc; however the sales order number is missing.
Could you please elaborate further how could FI substitution be implemented to call for the FM COPA_PROFITABILITY_SEGMENT through user exit? Are you recommending the substitution through GGB1? What could be the possible validation to call for the user exit to be implemented?
Regards,
Sandeep Kulkarni -
How to generate sales order number
Hai friends,
In sales order creation, I want to generate a sales order number (i.e., 1 for the first sales order, 2 for the second and so on). This number should be generated successively in background. How it can be done..?Hello,
Yes, I'm struggling to understand what you're after too. You could create a z table to keep track of the number if it's bespoke. Otherwise try these tables: FBN1, NRIV (intervals), T161 (po) TNRO (linked to NRIV).
Good luck!
Ash Thomas
http://www.ashthomas.com
Sap Abap Developer & Sap Abap Programmer
Maybe you are looking for
-
Itunes crashes when attempting to submit CD track names
After importing an Audio CD I update the track names. This has worked perfectly until the most recent upgrade of Itunes. Steps to consistently cause the crash: In Itunes, click on Advanced Menu option. Select 'Submit CD track names' Enter a more than
-
Database Adapter: How to Insert when one column is an identity column
Hi everyone I'm developing a BPEL process who uses a database adapter to insert a row in a table of an SQL Server database. The problem is that the database adapter tries to insert a null value into the field that is the primary key of the table so t
-
Where to best place SFX folder for Audition use?
Just downloaded several SFX and beds from ADOBE, where to place all these files so they'll be available for use in Audition? Is there a path on my MAC PRO latest OS that this folder should reside to be read by Audition? Thanks
-
HT201340 So I imported my iPhoto library into Aperture.
I had hidden photos in iPhoto, but they can't be found in Aperture. The "projects" show the correct number of photos (i.e. 684), but there are only two photos. None of the hidden ones. What's up? I have more than 30,000 photos, with quite a number
-
i use crystal 2011 sp 2 in win7, i use Progress OpenEdge, trying to view the report in the application, this does not open. any idea why?