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 AM
hi
try this
BAPI_SALESORDER_CHANGE
hope this helps
regards
Aakash Banga
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. -
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 -
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,
JohnHi,
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 -
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 -
Bapi to update delivery date in confirmation tab in purchase order me22n tc
Hi All,
I am writing a BDC to update the data in confirmation tab for puchase orders for enjoy transaction.
Please let me know how to updated delivery date in confirmation tab in purchase order(ME22N) using a bapi.
I tried using BAPI_PO_CHANGE but found no parameter related to confirmations tab. this BAPI has every thing to update like header data, item data, scheduling data..... except confirmation.
So please let me know how to update the data in confirmation.
We need to use only enjoy transaction ME22N not ME22 in BDC thats why we are looking for a BAPI.
Regards,
VenkatHi
Check the table parameter POCONFIRMATION in BAPI_PO_CHANGE
U can see the field DELIV_DATE in the structure BAPIEKES.
DELIVERY_DATE in the structure BAPIMEPOSCHEDULE as well.
Regards,
Dwaraka.S
Edited by: Dwarakanath Sankarayogi on Feb 5, 2009 7:57 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 -
BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition
Dear All,
BAPI function module 'BAPI_PO_CHANGE' is not updating aacural condition in PO pricing. Please give me a right solution on this query.
Below I have given my code.
Thanks and Regards
Makarabd
poitem-po_item = '00010'.
poitem-net_price = '1060.00'.
poitem-period_ind_expiration_date = 'D'.
APPEND poitem.
poitemx-po_item = '00010'.
poitemx-po_itemx = 'X'.
poitemx-net_price = 'X'.
APPEND poitemx.
select single * from ekko where ebeln = po_no.
pocond-itm_number = '00010'.
pocond-cond_type = 'ZVCU'.
pocond-cond_value = 10.
pocond-currency = '%'.
pocond-STAT_CON = 'X'.
pocond-accruals = 'X'.
pocond-change_id = 'I'. " I - Add , U - Update , D - Delete
APPEND pocond.
pocondx-itm_number = '00010'.
pocondx-itm_numberx = 'X'.
pocondx-cond_type = 'X'.
pocondx-cond_value = 'X'.
pocondx-currency = 'X'.
pocondx-change_id = 'X'.
pocondx-STAT_CON = 'X'.
pocondx-accruals = 'X'.
APPEND pocondx.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = po_no
TABLES
return = return
poitem = poitem
poitemx = poitemx
pocond = pocond
pocondx = pocondx.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'.Hi ,
Are you trying to pass the non char fields in CI_COBL. Please look at the link below .
[http://forums.sdn.sap.com/thread.jspa?threadID=1137795] .
Also serach for the similar threads when and notes while transferring currency and quantity field in different custom includes of the EKPO ...
Thanks,
Anjaneya . -
Function module or BAPI that is used to update the records in RBKP table.
Hello All,
Can anybody please give me the name of any Function module or BAPI that is used to update the records in RBKP table.
Please help me
I need to change the fiscal year in RBKP table
Thanks in Advance,
Regards,
LIJOHi,
You can use the BAPIs,
BAPI_ACC_INVOICE_RECEIPT_CHECK Accounting: Check Invoice Receipt (OAG: LOAD PAYABLE)
BAPI_ACC_INVOICE_RECEIPT_POST Accounting: Post Invoice Receipt (OAG: LOAD PAYABLE)
Hope this helps.
Regards,
Renjith Michael. -
Delivery split using function modules or BAPI
Dear All,
I have a requirement that i need to split deliveries with reference to sales order using any function modules or BAPIs. If there are any BAPIs or FMs, let me know the sample coding also. Kindly help me in this regard as soon as possible.
Thks in advance,
Nagarajan
Edited by: abapnag on Jul 1, 2009 10:06 AM
Edited by: abapnag on Jul 1, 2009 10:07 AMCheck BAPI_OUTB_DELIVERY_SPLIT_DEC
Check the Function Module DOC_INPUT_SHP_OBDLV_SPLIT_DEC
and also chk
Re: BAPI
Kanagaraja L
Edited by: Kanagaraja Lokanathan on Jul 1, 2009 10:32 AM -
BAPI for changing delivery date and delivery time fields in LIKP table
Hi All,
Is there any BAPI or function module to change the delivery date and delivery time in LIKP table ?
Please tell me experts if exists.
Thank you,
Raghu.try these:
BAPI/FM to update LIKP and VTTK tables
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-for-changing-sales-headertable-likp-662800 -
Function modules or BAPI for deleting plan costs on a cost center
Hi all,
I search for a function module or bapi to delete plan costs / activity on a cost center.
At the moment I update the planning with 0, but that cause a mass of needles entries on the cost centers.
For check and posting I use the function group 6026 - BAPI_COSTACTPLN_* ,
but there is no function for deleting.
Has anyone an idea?
Thx for help - points as reward !check
BAPI_COSTACTPLN_POSTACTINPUT Activity Input Planning: Posting
BAPI_COSTACTPLN_POSTACTOUTPUT Activity/Price Planning: Posting
BAPI_COSTACTPLN_POSTKEYFIGURE Stat. Key Figure Planning: Postings
BAPI_COSTACTPLN_POSTPRIMCOST Primary Cost Planning: Postings
BAPI_PDTRANSCO_POSTPRIMCOST Transfer of Planning Data: Post Primary Costs
K40C CO Actual Postings, Manual
BAPI_ACC_PRIMARY_COSTS_POST Accounting: Post Primary Costs
BAPI_COPAACTUALS_POSTCOSTDATA BAPI Operating Concern: Post Costing-Based Actua
BAPI_PRIM_COST_CHECK_AND_POST Primary Costs: Formal Parameter Check
S@meer -
Problem while updating Delivery date uisng BAPI_PO_CHANGE
Hi friends,
Iam facing a problem while updating delivery date of a purchase order using the bapi BAPI_PO_CHANGE
After the bapi is getting triggered iam geting sy-subrc = 0
But in the return parameters iam getting 3 error messages so iam unable to update the delivery date..
Error meesage which iam getting are
a) Purchase order still contains faulty items
b) Enter Tax Code
c) Instance 1000001 of object type PurchaseOrder could not be changed.
How can i correct it..
Please find my code below
LOOP AT it_eket INTO wa_eket.
wa_poschedule-po_item = wa_eket-ebelp.
wa_poschedule-sched_line = wa_eket-etenr.
wa_poschedule-delivery_date = wa_eket-eindt.
APPEND wa_poschedule TO poschedule.
wa_poschedulex-po_item = wa_eket-ebelp.
wa_poschedulex-sched_line = wa_eket-etenr.
wa_poschedulex-po_itemX = 'X'.
wa_poschedulex-sched_lineX = 'X'.
wa_poschedulex-delivery_date = 'X'.
APPEND wa_poschedulex TO poschedulex.
READ TABLE IT_EKPO INTO WA_EKPO WITH KEY EBELN = WA_EKET-EBELN
EBELP = WA_EKET-EBELP.
IF SY-SUBRC = 0.
WA_POITEM-PO_ITEM = WA_EKPO-EBELP.
APPEND WA_POITEM TO POITEM.
WA_POITEMX-PO_ITEM = WA_EKPO-EBELP.
WA_POITEMX-PO_ITEMX = 'X'.
APPEND WA_POITEMX TO POITEMX.
ENDIF.
CALL FUNCTION 'BAPI_PO_CHANGE'
EXPORTING
purchaseorder = wa_eket-ebeln
TABLES
return = t_bapiret2
POITEM = POITEM
POITEMX = POITEMX
poschedule = poschedule
poschedulex = poschedulex.
READ TABLE t_bapiret2 INTO wa_bapiret2 WITH KEY type = 'E'.
IF sy-subrc NE 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
* EXPORTING
* WAIT =
* IMPORTING
* RETURN =.
IF sy-subrc = 0.
WRITE : 'DELIVERY DATE UPDATED'.
ENDIF.
ENDIF.
how can i correct it...
Regards
KumarHi,
Pass the following values...
POACCOUNT LIKE BAPIMEPOACCOUNT...
poaccount-TAX_CODE = ? (value)....
That should take care of the missing field.
Regards,
Madan.. -
Problem in updating delivery date in va02
hi abapers,
my requirement is to update the delivery date in va02 at header level. i have this code in sapmv45a, include is mv45afzz,
written code in move_fields_to_vbak.
when ever iam running the va02 tcode i am getting my updated delivery date , when iam saving again this exit triggering so that again delivery date is updatting.
here x is the updated date getting from z function module. iam pasing this value to below statement
vbak-vdatu = x.
so that how to stop triggering the code while saving.hi abapers i posted the code, here the problem iam facing is that, when ever iam opening the va02 tcode updated delivery date is coming but when ia msaving again this is triggering so that first updated date is again updating .
here x is the day no comes from function module in below code , iwll compare x with following zroutern function module .
suppose .
updated date is 17.12.2010 so that i will push to vbak-vdatu = 17.12.2010. but here again date_compute_day is again calcultaing day from 17.12.2010 so that again that day which is stored is x again compared to zroutern function module .
here i aim is when ever i get updated date then it shuold come out of this application .
plese suggest .
READ TABLE XVBAP INDEX 1.
READ TABLE XVBPA WITH KEY VBELN = XVBAP-VBELN
"POSNR = XVBAP-POSNR
PARVW = 'WE'.
IF SY-SUBRC = 0.
L_KUNNR = XVBPA-KUNNR.
ENDIF.
IF SY-UZEIT+0(2) >= 15.
E_RDD = SY-DATUM + 2.
ELSE.
E_RDD = SY-DATUM + 1.
ENDIF.
IF E_RDD > VBAK-VDATU.
OP_RDD = E_RDD.
ELSE.
OP_RDD = VBAK-VDATU.
endif.
CALL FUNCTION 'DATE_COMPUTE_DAY'
EXPORTING
DATE = OP_RDD
IMPORTING
DAY = X.
CALL FUNCTION 'ZROUTESCHEDULE'
EXPORTING
KUNNR = L_KUNNR
VSBED =
VSTEL = VBAP-VSTEL
ROUTE = VBAP-ROUTE
IMPORTING
ZRETURN = IT_RETURN.
READ TABLE IT_RETURN INTO WA_RETURN INDEX 1 .
IF WA_RETURN-MONDAY = 'X'.
wa_days-num = '1'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-TUESDAY = 'X'.
wa_days-num = '2'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-WEDNESDAY = 'X'.
wa_days-num = '3'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-THURSDAY = 'X'.
wa_days-num = '4'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-FRIDAY = 'X'.
wa_days-num = '5'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-SATURDAY = 'X'.
wa_days-num = '6'.
append wa_days to it_days.
ENDIF.
IF WA_RETURN-SUNDAY = 'X'.
wa_days-num = '7'.
append wa_days to it_days.
ENDIF.
SORT IT_DAYS BY NUM.
CLEAR WA_DAYS.
IF NOT IT_DAYS[] IS INITIAL. "#1 CHECKING
READ TABLE IT_DAYS INTO WA_DAYS WITH KEY NUM = X.
IF SY-SUBRC <> 0.
IF NOT IT_DAYS[] IS INITIAL.
LOOP AT IT_DAYS INTO WA_DAYS.
IF WA_DAYS-NUM GT X.
Z = ( WA_DAYS-NUM ) - X.
UP_DATE = OP_RDD + Z.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
SORT IT_DAYS BY NUM DESCENDING.
IF UP_DATE IS INITIAL.
IF NOT IT_DAYS IS INITIAL.
READ TABLE IT_DAYS INTO WA_DAYS INDEX 1.
Y = X - WA_DAYS-NUM.
UP_DATE = OP_RDD + 7 - Y.
ENDIF.
ENDIF.
VBAK-VDATU = UP_DATE.
ENDIF.
CLEAR: X,UP_DATE,Y.
ENDIF. "#1 CHECKING
ENDIF. "1 YVBAK
ENDIF.
Maybe you are looking for
-
No sound, on ipad2 please help
no sounds on ipad 2 , IOS7 please help
-
How to Convert GMT in EST timezone
We are comunicating with a system,which send date and time in this format - GMT Date and time in YYYYMMDDHHMISS where HH is 24 hour format.Our server has EST (US) time zone. Now I have to validate if the received time stamp from our client is with in
-
I downloaded a template for a check register. Now where do I put it? I knew where everything went in 9, but X leaves me scratching my head. Thanks.
-
Component and connection model view
If I want to build some dynamic component and connection model view using flex( e.g. like UML diagram), is there any exsiting lib or framework that can help me to do this kind of things. For example, help me render the components and connections on t
-
Scroll position does not reset on datasets
Forgive me if this is somewhere else, but I cannot find it. In using spry datasets in CS4, when the data in a container is long enough to need a scroll bar, the scroll position does not reset to the top when you chose the next item in the dataset.