Function Module or BAPI to update Sales Order (delivery Block)
Hi,
Is there a Function Module or BAPI available that can update the Delivery Block for a looping Sales Order?
Thanks,
John
Hi,
check this sample code to update delivery block..
DATA: BAPISDH1X LIKE BAPISDH1X.
DATA: BAPISDH1 LIKE BAPISDH1.
PARAMETERS: P_VBELN LIKE VBAK-VBELN OBLIGATORY.
PARAMETERS: P_LIFSK LIKE VBAK-LIFSK OBLIGATORY.
* Header
BAPISDH1-DLV_BLOCK = p_lifsk. " Delivery block
* header X
BAPISDH1X-DLV_BLOCK = 'X'. " Delivery block
BAPISDH1X-UPDATEFLAG = 'U'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = P_VBELN
order_header_in = BAPISDH1
order_header_inx = BAPISDH1X
tables
return = T_RETURN
LOOP AT T_RETURN WHERE TYPE = 'E' OR TYPE = 'A'.
EXIT.
ENDLOOP.
* Check for error messages.
IF SY-SUBRC = 0.
WRITE: / 'Sales order not updated', T_RETURN-MESSAGE.
ELSE.
* Successfully updated
WRITE: / 'Sales order updated'.
ENDIF.
COMMIT WORK.
Thanks
Naren
Similar Messages
-
Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng)
Hi,
I have a requirement to use a Function Module or BAPI to update Sale Order Quantity (VBAP-kwmeng), which one (Function Module or BAPI) should I use? is there any sample codes?
Thanks a lot!!Hi,
*& Report ZTEST
REPORT ztest.
DATA : wa_header TYPE bapisdh1x,
i_item TYPE TABLE OF bapisditm WITH HEADER LINE,
i_itemx TYPE TABLE OF bapisditmx WITH HEADER LINE,
i_return TYPE TABLE OF bapiret2.
wa_header-updateflag = 'U'.
i_item-itm_number = '000010'.
i_item-target_qty = '4'.
APPEND i_item.
i_itemx-itm_number = '000010'.
i_itemx-updateflag = 'U'.
i_itemx-target_qty = 'X'.
APPEND i_itemx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = '1234567890'
order_header_inx = wa_header
TABLES
return = i_return
order_item_in = i_item
order_item_inx = i_itemx
Hope this will help you.
Regards,
Anand. -
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 update Sales Order Delivery Block while saving Delivery ?
Hi,
I have a requirement wherein i need to update sales order delivery block field(VBAK-LIFSK) while saving the delivery for the order.
Also I need to remove this block while execution of Backorder Rescheduling program SDV03V02 (Tcode : V_V2),
Can anybody help me out in this?
regards,
NitinHI,
try using BAPI_SALESORDER_CHANGE
pass ur vbeln in SALESDOCUMENT
pass an 'X' to BAPISDH1-DLV_BLOCK
and 'X' to BAPISDH1X-DLV_BLOCK
Also add the UPDATE task clause, you will want to set the flag only when delivery is being saved, not before that. -
Need name of a function module or BAPI to update the Tax Classification val
Hi Guru's
Need name of a function module or BAPI to update the Tax Classification value for Material master.
Thanks in advance.Hi
U can try to use BAPI_MATERIAL_SAVEREPLICA
Max -
Change sales order delivery block
Dear Friends
I need to change a sales order delivery block VBAK-LIFSK.
I am providing the new LIFSK in the selection screen. From my analysis I have to use FM: BAPI_SALESORDER_CHANGE.
Please tell me what values I should pass to this FM to change my sales orders as above.
If there is any other FM please suggest that.set the field DLV_BLOCK to delivery block needed.
Regards,
Raghavendra -
Function Module or BAPI to update Short text for sales order item(vl02n)
Hi All,
I need to update the Short text for sales order item in vl02n transaction from an internal table with Delivery number and other relevant details .
Does any body know any Function Module or BAPI which can accomplish this purpose .
Or else writing BDC is the only option I have got ? .
Please clarify .
Thanking you in advance .
With Regards,
Suriya .Hi
You can try using BAPI_SALESORDER_CHANGE if you want to change sales order
Regards
MD -
Function Module or BAPI to update the cheque payments
Hi Everyone,
I would like to know whether we have any Function Module or BAPI which can update the cheque payment or its attributes into SAP.
Thanks,
KC
Message was edited by:
kittu chowdaryAniruddha,
Does this BAPI update the Transactions FCH6, FCH9 ?
Thanks,
KC -
Function Module or BAPI to update Delivery Date (LIKP-lfdat)
Hello friends,
I have a requirement to update Delivery Date (LIKP-lfdat) , is there any Function Module or BAPI to do that? any sample codes are appreciated.
Thanks a lot!
Edited by: Qiwei Yin on Dec 11, 2008 8:50 AMhi
try this
BAPI_SALESORDER_CHANGE
hope this helps
regards
Aakash Banga -
SALES ORDER DELIVERY BLOCK REMOVAL ON DOWN PAYMENT
Hi All,
When cash is applied that clears down payment request billing, type ZFAZ, we want the order delivery block, ZB Wait for AdvPaym, to be cleared on the sales order. We only want this to happen if the payment exactly matches the billing amount and only with this one delivery block reason.
We want this to happen real time upon the down payment is made using F-28 transaction
Can any one suggest how to accomplish this.
thanks
VijayAlthough two years ago, could you maybe share your answers with the community?
Regards,
Niels -
Function module for deleting the perticular sales order
Hi Experts
I wanted a function module name for deleting the perticular sales order document ,when i enter the import parameter as sales order no and some value as export parameters so that i can use that for the program (message :successfully deleted ).Hi Satya,
Use BAPI BAPI_SALESORDER_CHANGE as follows:
DATA: T_RETURN LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE.
DATA: BAPISDH1X LIKE BAPISDH1X.
PARAMETERS: P_VBELN LIKE VBAK-VBELN.
*SET THE DELETION FLAG
BAPISDH1X-UPDATEFLAG = 'D'.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
salesdocument = P_VBELN
order_header_inx = BAPISDH1X
tables
return = T_RETURN
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
Hope this will help.
Regards,
Nitin.
Edited by: Nitin Karamchandani on Dec 8, 2008 8:36 AM -
Function Module or BAPI to update a job's parameters like Spool retention
Hi All,
Anyones knows any BAPI or Function Module through with we can update a job's parameters like Spool retention period or Spool request title or some other printer settings.
Thanks in Advance.
Regards,
ShailendraHi,
BAPI_XBP_JOB_HEADER_MODIFY -
FM/BAPI to update sales order item characteristic values
Hi experts,
I have an urgent requirement on changing the characteristic values of a sales order item (VA01/VA02). Is there any FM or BAPI to update the characteristc values?
Points will be awarded.
Regards,
LeoHi,
I need an FM/BAPI that can be run inside user exit USEREXIT_SAVE_DOCUMENT_PREPARE to update the item configuration. I tried the FM you have given me but it didn't work. If you have sample codes that can update the configuration values of the sales order item, it will help me a lot. Thanks!
Regards,
Leo -
Function Module for Incompletion Log in Sales Order
Hello All,
Can anybody provide me the function module when the sales order is incomplete due to Incompletion log.
Thanks,HI,
Use the functional module: RV_MISSING_DOCUMENT_DATA.
Goto SE37 and press F7, input the material/order number etc in the import data field VBCOM.
And then execute the module. By using this module we will get all the incomplete items in an order.
If you want list of incomplete orders, use V.02 transaction code.
Regards,
Satya. -
Post Goods Issue - Tracing backward to update Sales Order & Delivery Docs
I have a requirement as follows. I need to do a Sales Document change and a delivery document change prior to goods Issue being done. The situation is to prevent SAP's normal back order processing from kicking off. I am quite confused about which method to use to achieve this. Wether BAPI &/or BDC &/or User Exit ???
Please help you will be rewarded with points....Hello Srinivas
The business requires that like order line items be consolidated to one line item prior to the order going to the warehouse for picking. this will aid in picking at the warehouse as well as result in the customer invoice not reflecting more than one line item for the same material. In the case where the customer has truly ordered more than a case, i.e. 1 case 2 eaches. The documents in SAP should still reflect 2 line items.
The business also states that there be a 1 to 1 relationship between sales order and delv note. This means any unconfirmed line items must be closed out after del. note is created for the sales order. The closing out of the sales order will stop SAP from automatically creating a backorder once the unconfirmed line items become available in inventory.
The business also requires that all partial line items in the delv. due to stock not available at the time of picking (those line items need to be updated) with the pick qty. And the line items which were not picked need to be automatically cancelled out. In addition the order line item must be rejected with a reason code for the line item which were not picked.
We have a daily IDOC interface which creates shipments and updates delivery qty.
I hope that clarifies the business. Pls let me know.
Regards
Maybe you are looking for
-
How to customize the data selection on a standard 2LIS_08TRTLP
Hi All, on the datasource '2LIS_08TRTLP Shipment delivery per stage', I would need to filter on '0DEL_TYPE delivery type' but it is not part of the standard 'data selection' for this datasource. I have some initial loading issue if I cannot filter d
-
Insert Chinese data in Oracle but cannot be shown when querying
I use: JDK 1.1.8, Oracle 8i, thin driver. The OS is HP Unix. I successfully insert the Chinese Big5 encoding data into Oracle. But I can't show the Chinese again when I querying. Here's my code: Class.forName("oracle.jdbc.driver.OracleDriver"); con =
-
CAD Desktop or Integrators ?
Is it recommended to go for CAD desktop or to go for Individual connectors for CAD integration for AutoCAD,Inventer,Solid Works,Solid Edge etc ? Kindly Let me know. Thanks
-
Java.lang.Exception: Multiple Matches Found
Hi, I have written scheduler task to connect people soft DataBase get the users list and disable user accounts in IDM . Below is the peace of code. ============================= ResultSet results = stmt.executeQuery(selectQuery); tcReconciliationOper
-
Cannot access external drive ITS INVISIBLE
I just control clicked my external hard drive and I unintentionally changed something under ownership and permissions and now I can not see or access the drive. -I attempted to use disk warrior to restore and it did nothing. -Disk Utility was able to