How to Import a Sales Order in Shipped Status(line) using oe_order_pub
Hi,
I am trying to upload the sales order using oe_order_pub in Shipped status. I did not suceed in this effort.
Can any one tell me how this could be done?
Also can any one tell how to import sales order with multiple lines using the API oe_order_pub.
Thanks in advance
Regards,
Bright
Dorristats
You cannot use Shipping API as that is not required in your case (I am not sure Demantra looks at the shipping tables or just order line tables for forecasting using history). If you go down that path your situation will get complicated.
Assuming that Demantra looks at order lines for the actual_shipment_date and shipped_quantity
1. Try passing the ordered_date, request_date and promise_date as they are in the legacy.
2. You can (have not tested this) actual_shipment_date as it is in the history to the API to create the order line.This should work.
3. If that is not allowed,in the custom workflow process (you have to create) to convert these lines from your legacy or third party systems, you can just update these columns in a custom node.
Thanks
Nagamohan
Similar Messages
-
How to create a Sales order with ref to Contract using Function Module
How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?
We have a unique situation where we like change the sold-to customer of the sales order
once order has been created. These orders have been created using either by function module
BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
These two processes work abosolutely fine except someone might have change the sold-to
customer of the ship-to customer of the original sales order. If this the case then the new
sales order will be created with the old sold-to and with not the new sold-to.
We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
the returned parameteres of the BAPIs and they are all successful but sold-to remains the
same old one.
Any help would be much more appreciated. -
How to read the Sales Order( Item ) System status?
Hi All,
My requirement is to display the System status of the sales order item*. When we go to the sales order display, if i double click on the line item , ii will lead to the next screen.Click on status tab,here we can see the Sytem staus. I would like to know the logic to read this sytem status ?
Thanks,
Suresh.read tables VBUK, VBUP for SD document status indicators
-
How to print one sales order output from two printers using single command.
Dear all,
Our requirement is to print single sales order from two different printers, where as one printout for sales order output and another for sales order cash receipt.
We developed two smartforms for both outputs.
But we are struggling to assign the smartforms to single document type, which has to result two printouts after saving the sales order.
Please help us to solve the issue.
Your suggestions will be highly appreciated.
Best regards
Raghu ramHi,
You should define two different output type for your requests, one is for SO output, the other is for SO cash receipt. That's okay!
Good luck
Z.T -
How to create the sales order using BAPI's ....?
Hi Guru's,
could you please provide how to create the sales order using BAPI's .....i need step by step process and please provide the details from scratch....basically i don't have basic knowledge on this....please provide required inputs ....:)
thanks in advance
Srinivas......Hi Guru's thanks for your inouts and your valuble time...
please find the program logic below...
*& Report ZAREPAS30
REPORT zarepas30.
DATA : gs_vbeln TYPE vbak-vbeln,
gs_order_header_in TYPE bapisdhd1,
gs_order_header_inx TYPE bapisdhd1x,
gt_order_items_in TYPE STANDARD TABLE OF bapisditm,
gwa_itab1 TYPE bapisditm,
gt_order_items_inx TYPE STANDARD TABLE OF bapisditmx,
gwa_itab2 TYPE bapisditmx,
gt_order_partners TYPE STANDARD TABLE OF bapiparnr,
gwa_itab3 TYPE bapiparnr,
gt_return TYPE STANDARD TABLE OF bapiret2,
gwa_itab4 TYPE bapiret2.
Sales document type
PARAMETERS: p_auart TYPE auart OBLIGATORY.
Sales organization
PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
Distribution channel
PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
Division.
PARAMETERS: p_spart TYPE spart OBLIGATORY.
Requested Delivery Date
PARAMETERS: p_edatu TYPE edatu OBLIGATORY.
Sold-to
PARAMETERS: p_sold TYPE kunnr OBLIGATORY.
Ship-to
PARAMETERS: p_ship TYPE kunnr OBLIGATORY.
Material
PARAMETERS: p_matnr TYPE matnr OBLIGATORY.
Quantity.
PARAMETERS: p_menge TYPE kwmeng OBLIGATORY.
Plant
PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
Start-of-selection.
START-OF-SELECTION.
Header data
Sales document type
gs_order_header_in-doc_type = p_auart.
gs_order_header_inx-doc_type = 'X'.
Sales organization
gs_order_header_in-sales_org = p_vkorg.
gs_order_header_inx-sales_org = 'X'.
Distribution channel
gs_order_header_in-distr_chan = p_vtweg.
gs_order_header_inx-distr_chan = 'X'.
Division
gs_order_header_in-division = p_spart.
gs_order_header_inx-division = 'X'.
Reguested Delivery Date
gs_order_header_in-req_date_h = p_edatu.
gs_order_header_inx-req_date_h = 'X'.
gs_order_header_inx-updateflag = 'I'.
Partner data
Sold to
gwa_itab3-partn_role = 'AG'.
gwa_itab3-partn_numb = p_sold.
APPEND gwa_itab3 TO gt_order_partners .
ship to
gwa_itab3-partn_role = 'WE'.
gwa_itab3-partn_numb = p_ship.
APPEND gwa_itab3 TO gt_order_partners .
ITEM DATA
gwa_itab2-updateflag = 'I'.
Line item number.
gwa_itab1-itm_number = '000010'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
Line item number.
gwa_itab1-itm_number = '000020'.
gwa_itab2-itm_number = 'X'.
Material
gwa_itab1-material = p_matnr.
gwa_itab2-material = 'X'.
Plant
gwa_itab1-plant = p_plant.
gwa_itab2-plant = 'X'.
Quantity
gwa_itab1-target_qty = p_menge.
gwa_itab2-target_qty = 'X'.
APPEND gwa_itab1 TO gt_order_items_in.
APPEND gwa_itab2 TO gt_order_items_inx.
CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
EXPORTING
order_header_in = gs_order_header_in
ORDER_HEADER_INX = gs_order_header_inx
IMPORTING
SALESDOCUMENT = gs_vbeln
tables
RETURN = gt_return
ORDER_ITEMS_IN = gt_order_items_in
ORDER_ITEMS_INX = gt_order_items_inx
order_partners = gt_order_partners.
Check the return table.
LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
EXIT.
ENDLOOP.
IF sy-subrc = 0.
WRITE: / 'Error occured while creating sales order '.
ELSE.
Commit the work.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
WRITE: / 'Document ', gs_vbeln, ' created'.
ENDIF. -
Sales Order Item Shipping point (VBAP-VSTEL) value in APO table
Hi,
I am looking for Sales Order Item Shipping point (VBAP-VSTEL) value in APO.Can I get this info in APO ?
This information is not available in table /SAPAPO/SDORD or /SAPAPO/SDFIELD.
Basically table /SAPAPO/SDORD is completely blank. Table /SAPAPO/SDFIELD has entry for Sales Order Item but not for VSTEL. Shipping point is there in the Catalog table in ECC and I can see that it is getting imported to APO but why it is not avaibale in SDFIELD table.Any idea ?
I cheked table /SAPAPO/SHIPPING also for the guid (Item guid) but not found any entry .
Please help.RKS,
Most data in SCM is not stored in tables, it is stored in LC. In general, it is not the best idea to use APO for creating custom reports against transactional data. You do such reporting in the OLTP, and you use the standard SAP programs to keep these systems in synch.
Some SD auxiliary data is sometimes stored in /SAPAPO/SD_DOC.and /SAPAPO/SDFIELD. Check here, you might find something useful. No guarantees......
Best regards,
DB49 -
List of Sales Orders wrt SHIP TO PARTY through T Code VA05.
Hi Experts,
Please let me know how can we extract list of Sales Orders wrt SHIP TO PARTY through T Code VA05. We can select Ship to Party option through Partner function tab in selection screen, but while executing transaction, we get list for SOLD TO PARTY.
Please advise.
Thanks,
Abhishek AgrawalHi,
In the VA05 report selection screen, you have the option of selecting the relevant partner function that needs to be considered. Click on the "Partner Function" button and change it to "SH"
Then given the ship to party number you want to analyze and execute the report.
In the report output screen, you will see the Ship-to Party in the header.
In the detail level, you see the sold to party numbers. Since the report can be executed for one ship to or sold to at once, there is no requirement to see the ship to party in the line level.
If you double click on the line, you can go to the sales order and verify your sold to and ship to details.
Best regards,
Anupa -
How to create a Sales Order using BAPI_SALESORDER_CREATEFROMDAT1 in VC
I am new to Visual Composer.
I read the tutorial and created a Model which fetches the Sales Orders from the R/3 using <b>BAPI_SALESORDER_GETLIST</b>, every thing worked fine.
I am trying to create a sales order in R/3 using <b>BAPI_SALESORDER_CREATEFROMDAT1</b>, following are the steps I did:
1)Create a model
2)Drag a model element(iView) on to the designer
3)Double click the iView and Drag the function <b>BAPI_SALESORDER_CREATEFROMDAT1</b> on to the iView Designer
Now my question is, for <b>BAPI_SALESORDER_CREATEFROMDAT1</b> there are some mandatory fields as mentioned in the document.
1. Mandatory entries:
ORDER_HEADER_IN :
DOC_TYPE Sales document type
SALES_ORG Sales organization
DISTR_CHAN Distribution channel
DIVISION Division
ORDER_PARTNERS..:
PARTN_ROLE Partner functions, SP sold-to party
PARTN_NUMB Customer number
ORDER_ITEMS_IN..:
MATERIAL Material number
REQ_QTY Order quantity in sales unit
I can pass the values of structure <b>ORDER_HEADER_IN</b> from a input form but how should I pass mandatory values for tables <b>ORDER_PARTNERS</b> and <b>ORDER_ITEMS_IN</b>.
Ideally I should have one form where I can send all the mandatory items in the form.
Thank you,
VamsiHi,
how did you return the materials in the Table View. I tried to do it, but it only returns one material?
Regards,
Matthias -
How to look for sales order number if I know outbound delivery number?
How to look for sales order number if I know outbound delivery number?
Hi ,
If you want to see the Sales order Number from Outbound delivery or invoice,go to their respective T-codes,say for example,
for delivery,Goto Tcode: VL02N / VL03N.There you will find Document Flow Icon,click on that,or press F7.
You will get a window,there you can see the Sales order Number before your outbound delivery Number
With Thanks and Regards,
Priya -
How to summarize Open sales order credit value
Hi, friends.
I am designing Add-on report about credit exposure.
I found the relevant tables of Credit Limit in FD32
KNKK
S066
S067
Then, I would like to show the document details of open sales order credit value in the report.
I tried to summarize the open sales order amount from VBAK, VAUK, VBAP, VBUP.
However, it doest match to the amount in S066 table.
Can anyone tell us how to summarize Open sales order credit value from SD documents?
Regards,
YuSudheer,
You need to check the update rule given in the definition of the Credit control Area which you are using for credit management. If you want only the open deliveries then you need to have update rule 15 in the credit control area.
In the credit controal settings, you need to have settings for the credit check at the delivery level.
Hope this will solve your issue.
Regards,
Chetan
Edited by: Chetan Gupte on Jul 15, 2010 8:56 PM -
Best Way to Import Open Sales Orders
Dear Experts,
Which is the best possible way to export and import open sales orders from one DB to an another both being (SAP B1 2007)
Regards,
AdityaHi,
The only othe way to acheive this would be with SDK really. I've heard of people doing things like this in the past where the volume of data was so much that it was worthwhile to write some code, but to be honest if you're relatively proficient in DTW then you can have done the job by the time you've conned a programmer into writing it for you!
Good luck!
Julian -
How to find open sales orders.
Hi Gurus,
Can you please help me out How to find open Sales orders in SAP.
Is there any transaction code available or we can get it through via tables.
Your afforts are highly appriciated .
SRavani.Dear SRAVANI,
You can find open sales orders from the Transaction code "VA05N", You just run this report, Below the screen you can find open sales orders radio button , you select this and give execution parameters and execute(F8).
You will get the all open orders.
Hope it fixes your issue.
Please check it and revert.
Thanks&Regards
Raghu.k -
Hi Guys,
Any one tell me how to create a Sales Order. What are the Mandatory parameters we need to pass while creating. Thanks in advance.
Thanks
Kiran.BHello kiran,
<b>**REMEMBER: please do reward points for good answers**</b>
1. Create sales order
This process step can be triggered as follows:
The customer accepts the quotation and places an order.
You create a sales order with reference to a quotation. For more information, see Structure link processing Quotations. The system copies the items from the quotation.
You create a sales order. This is also possible without performing the previous steps.
2. Enter products
You enter products requested by customers.
Note
If necessary, you can configure products again for every item of the sales order. You can find more information in the business scenario variant Structure linkQuotation and Order Management (Configure-to-Order) and under Structure linkProduct Configuration in the Sales Transaction.
3. Check availability, schedule order and create requirements
The system triggers an availability check and scheduling in SAP APO for every order item in SAP CRM. The confirmed quantities and dates are confirmed by SAP APO to SAP CRM, and saved in the sales order (see Structure linkAvailability Check in the Sales Order). At the same time, a customer requirement is created in SAP APO.
Note
You can also execute the availability check in SAP R/3. You can find more information under Structure linkAvailability Check with SAP R/3.
4. Maintain and determine conditions
The system determines the prices and the value of individual items. If necessary, you can process these. For more information, see Structure linkPricing.
5. Perform credit check
SAP R/3 executes a credit check based on the results of pricing in SAP CRM. The result of the credit check is confirmed in SAP CRM, and saved as the credit status at item level. For more information, see Structure linkAutomatic Credit Check.
6. System replicates sales order
After the sales order has been saved in SAP CRM, complete and without errors, it is replicated for logistics processing in SAP R/3. Order data is transferred together with confirmed scheduling lines to SAP R/3.
7. System receives sales order
After replication to SAP R/3, you can change the sales order in SAP CRM and SAP R/3. You can find more information on this under Structure linkData Exchange for Sales Transactions: CRM Enterprise - SAP R/3
8. Send order confirmation to customer
You can send the order confirmation either electronically, or in print to the customer. You can find more information under Structure linkSales Order Confirmation by E-Mail.
9. Monitor status of order
Regards
Ak -
How to create a sales order step by step please..
hi,
how to create a sales order in detail step by step.
Regards,
BBR.
Edited by: BBR on Dec 7, 2008 7:47 PM
Edited by: BBR on Dec 7, 2008 7:53 PMHi BBR
Check the following configurations are done or not
1)Go to VOR1 & VOR2 and assign dist channels and divisions to sales orgn.
2) SPRO->sales and distribution->basic functions->setup partner determination , here you maintain partner determination with the partner functions for Customer account group ,standard for sold to party is 0001
3) Create a customer with XD01
4) In OVAZ assign the sales document types to your sales area
5) Go to VN01 and maintain number ranges and assign to your sales document type (Ex: OR)
6)Go to VOV8 and select the sales document type(Ex: OR) and there you assign the number range
7) IN VOV4 check the item category determination is correct or not
8)Go to OVKK and Assign pricing procedure RVAA01 to your sales area,Cupp ,Dupp.
9) Maintain conditon records for the condition types that are there in the pricing procedure
10) Create a Material Master Record(MMR)
11) Now you can create the sales order with VA01
Regards
Srinath -
How to block a sales order when there is a free good item .
Hello Gurus ,
How to block a sales order when there is a free good item , only the authorised person should have authorisation to release those blocked Sales orders.
Reason - They want to have a track of free goods given to customer & to avoid the misusing things
Looking for your inputs
Thanks in advance
Regards
VenkatHi
I think you can try with Status Profile in BS02 define and assign for item category TANN.
In status profile you can block the delivery and also billing unless some changes the object status as released.
Just try and explore
regards
Prashanth
Maybe you are looking for
-
Have to re-boot each time I want to load iTunes
I recently bought a new computer, successfully downloaded itunes and my music. However, itunes will only open and operate properly the first time it's opened after start up. If I close itunes and try to re-open, I get an error message saying "itunes
-
How to implement a user-defined function in a mathscript node
I am trying to use a mathscript node that includes self-defined functions, but I always get an error. I tried to run an NI-example: MathScript using Riemann Zeta.vi ,and I got the same error I get when I run my own programmes:MathScript Node'MathScri
-
How to compile and run javacard program
how to compile and run javacard program "HelloWorld"
-
Internet Explorer message "refer to popup window"
Hi everyone, Value some help please. When visiting my work's website with Internet Explorer on a new Lumia 625, the message "refer to popup window" appears after I log in. Unfortunately, unlike using a desktop or laptop, no new tab appears. A new tab
-
Transition logical to physical failover
Can you change a logical failover to a physical failover using dataguard. I'm running Oracle 10.1.0.4 on Windows thanks.