BAPI for Delivery Create
hi,
1.can i create delivery for particular customer using bapis?
2.can i create invoice using bapis?
if it is possilble pls tell me the bapi names??????????????
regards
Guru
Hi Guruvulu,
Take a look at the following ones :
BAPI_INB_DELIVERY_CHANGE Change inbound delivery
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for inbound delivery verification from a decentralized system
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
BAPI_OUTB_DELIVERY_CHANGE BAPI for Change to Outbound Delivery
BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Verification from a Decentralized System
BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Sys
<b>BAPI_OUTB_DELIVERY_SAVEREPLICA / BAPI_INB_DELIVERY_SAVEREPLICA should be ok for you for the delivery creation.
and BAPI_INCOMINGINVOICE_CREATE for invoice.</b>
Hope this helps,
Erwan
Similar Messages
-
BAPI for delivery doc creation required
Hi All,
I need to develop a program wherein I need to create a sales order, delivery order, PGI(post goods issue) and invoice.......I have identified the bapi for sales order creation as bapi_sales_order_create..
I request u to kindly help with the others....lemme know the relevant bapis for the others...Hi,
Chk the FM's given below..Hope this will help you...
BAPI For Delivery Order
BAPI_DELIVERYPROCESSING_EXEC
BAPI to post a Goods issue
BAPI_OUTB_DELIVERY_CONFIRM_DEC "inbound Delivery
Filling HEADEWR_DATA-DELIV_NUMB, HEADER_CONTROL-DELIV_NUMB, DELIVERY with the delivery number and HEADER_CONTROL-POST_GI_FLG with 'X' does the job.
BAPI_OUTB_DELIVERY_CONFIRM_DEC " outboung Delivery
Reward Points if helpful.
Regards,
Harini.S -
Bapi for Delivery Creation from Sales Order
Hi
I have multiple sales order and i want to create 1 outbound delivery from it just like what Vl10A is doing.
Can i have BAPI or fumctiona module for same.
Best Regards
SubhamCheck this thread:BAPI for Delivery Creation
Also search the forums..there are many threads addressing the same issue.
Regards,
Kiran -
Gents,
We are in search for a BAPI for RFQ create like the one BAPI_PO_CREATE1 for PO. But we are not getting anyone like that. Please note that we are in ECC 6.0.
We don;t want to go for a BDC to do this.
Any options?
Regards
ShibuHi,
I tried this module, but it only works if DIMP is activated . See also : 1666702 - Syntax Error occurs when using BS01_MM_QUOTATION_CREATE .
This contains the remark: Please do not consider activating the Business Function Set DIMP because you only would like to use this specific function BAPI BS01_MM_QUOTATION_CREATE (for some custom development).
So I think, unfortunately this will not work on many installations.
I also tested BAPI_PO_CREATE1 : there is no field to pass the DocumentCategory (to set EKKO-BSTYP ='A' ).
EKKO-BSTYP is set internal to 'F' and as result the passed document type for the RFQ is invalid, when it is checked with table T161.
Does SAP plan to enable a workaround for this module or to develop and a new modul for RFQ-creation via BAPI?
And BAPI_PO_CREATE has an error in processing the passed currency-value. -
BAPI needed for goods receipt for delivery created from sales order
Hi experts,
I need help.
I want to post goods receipt for the delivery created from sales order. I have tried out BAPI BAPI_GOODSMVT_CREATE but I am not able to post it.
Is there any way to post this? I need BAPI and not FM MB_*....
Thanks & REgards,
Bhavin A. ShahHi,
Please refer to link,
https://wiki.sdn.sap.com/wiki/display/Snippets/BAPI_GOODSMVT_CREATE-ABAP
Regards
Shree -
BAPI for VL31N:Create Inbound Delivery
Hi all,
Please give the BAPI for VL 31N: Create Inbound delivery transaction
thanksNo bapi but you can use this function module GN_DELIVERY_CREATE
Select the data required - see below
select ebeln ebelp menge meins matnr werks lgort bstae loekz elikz
lmein umrez umren insmk pstyp sobkz knttp kzfme kzvbr
ematn mfrnr mfrpn emnfr cuobj uebto untto uebtk bwtar idnlf
txz01 mfrgr gewei voleh ntgew brgew volum ean11 aktnr abeln
abelp aurel matkl upvor uptyp uebpo wepos
into corresponding fields of table xekpo_short
from ekpo
where ebeln = i_ebeln
and ebelp = i_ebelp.
if sy-subrc ne 0.
e_rc = 4.
else.
read table xekpo_short index 1.
call function 'ME_EKKO_SINGLE_READ'
exporting
pi_ebeln = xekpo_short-ebeln
importing
po_ekko = ekko
exceptions
no_records_found = 1
others = 2.
if sy-subrc ne 0.
e_rc = 4.
elseif ekko-bstyp ne 'F' and ekko-bstyp ne 'L'.
e_rc = 4.
endif.
endif.
clear xvbsk.
xvbsk-mandt = sy-mandt.
xvbsk-ernam = sy-uname.
xvbsk-erdat = sy-datum.
xvbsk-uzeit = sy-uzeit.
xvbsk-smart = 'L'.
*- Nummer VBSK vergeben -
select single * from tvsa where smart = xvbsk-smart.
if sy-subrc = 0.
call function 'NUMBER_GET_NEXT'
exporting
nr_range_nr = tvsa-numki
object = 'RV_SAMMG'
importing
number = xvbsk-sammg
exceptions
others = 01.
if sy-subrc ne 0.
message e700(me) with tvsa-numki text-007.
endif.
else.
message e700(me) with space text-007.
endif.
data: h_grkor like lips-grkor, "Liefergruppe "386409
h_bsmng like ekpo-menge. "Bestellmenge übergeordnete Pos.
if not ekko-lifnr is initial.
call function 'VENDOR_MASTER_DATA_SELECT_12'
exporting
pi_lifnr = ekko-lifnr
pi_ekorg = ekko-ekorg
importing
pe_lfm1 = lfm1
exceptions
no_entry_found = 1
others = 2.
xkomdlgn-vsbed = lfm1-vsbed.
else.
clear xkomdlgn-vsbed.
endif.
xkomdlgn-lifnr = ekko-lifnr.
xkomdlgn-inco1 = ekko-inco1. "363954
xkomdlgn-inco2 = ekko-inco2. "363954
xkomdlgn-exnum = ekko-exnum. "363954
xkomdlgn-bukrs_best = ekko-bukrs. "363954
xkomdlgn-matnr = xekpo_short-matnr.
xkomdlgn-werks = xekpo_short-werks.
xkomdlgn-lgort = xekpo_short-lgort.
xkomdlgn-charg = ?
xkomdlgn-vrkme = xekpo_short-meins.
xkomdlgn-meins = xekpo_short-lmein.
xkomdlgn-umvkz = xekpo_short-umrez.
xkomdlgn-umvkn = xekpo_short-umren.
if xekpo_short-matnr eq space. "386409
xkomdlgn-meins = xekpo_short-meins.
xkomdlgn-umvkz = 1.
xkomdlgn-umvkn = 1.
endif.
xkomdlgn-insmk = xekpo_short-insmk.
xkomdlgn-kzfme = xekpo_short-kzfme.
xkomdlgn-kzvbr = xekpo_short-kzvbr. "note 384051
xkomdlgn-lfimg = p_lfimg.
xkomdlgn-lfdat = p_eindt.
xkomdlgn-vgbel = xekpo_short-ebeln.
xkomdlgn-vgpos = xekpo_short-ebelp.
xkomdlgn-lfart = gf_dlv_type.
xkomdlgn-vgtyp = 'V'.
xkomdlgn-kzazu = 'X'. "??? what's that for ????
xkomdlgn-knttp = xekpo_short-knttp.
xkomdlgn-sobkz = xekpo_short-sobkz.
if xekpo_short-matnr is initial or xekpo_short-pstyp = '6'.
xkomdlgn-posar = 'B'.
endif.
xkomdlgn-ematn = xekpo_short-ematn.
xkomdlgn-mfrnr = xekpo_short-mfrnr.
xkomdlgn-mfrpn = xekpo_short-mfrpn.
xkomdlgn-emnfr = xekpo_short-emnfr.
xkomdlgn-cuobj = xekpo_short-cuobj.
xkomdlgn-uebto = xekpo_short-uebto.
xkomdlgn-untto = xekpo_short-untto.
xkomdlgn-uebtk = xekpo_short-uebtk.
xkomdlgn-bwtar = xekpo_short-bwtar.
xkomdlgn-kdmat = xekpo_short-idnlf.
xkomdlgn-arktx = xekpo_short-txz01.
xkomdlgn-mfrgr = xekpo_short-mfrgr.
xkomdlgn-gewei = xekpo_short-gewei.
xkomdlgn-voleh = xekpo_short-voleh.
xkomdlgn-ntgew = xekpo_short-ntgew * xkomdlgn-lfimg.
xkomdlgn-brgew = xekpo_short-brgew * xkomdlgn-lfimg.
xkomdlgn-volum = xekpo_short-volum * xkomdlgn-lfimg.
xkomdlgn-ean11 = xekpo_short-ean11.
xkomdlgn-aktnr = xekpo_short-aktnr.
xkomdlgn-abeln = xekpo_short-abeln.
xkomdlgn-abelp = xekpo_short-abelp.
xkomdlgn-aurel = xekpo_short-aurel.
xkomdlgn-idnlf = xekpo_short-idnlf.
xkomdlgn-matkl = xekpo_short-matkl.
Leergut-Stückliste übernehmen
clear xkomdlgn-grkor.
clear xkomdlgn-kmpmg.
clear xkomdlgn-uepos.
if xekpo_short-upvor ca '3X'.
h_grkor = h_grkor + 1.
xkomdlgn-grkor = h_grkor.
h_bsmng = xekpo_short-menge.
endif.
if not xekpo_short-uebpo is initial and
xekpo_short-uptyp ca '3X'.
xkomdlgn-uepos = xekpo_short-uebpo.
xkomdlgn-grkor = h_grkor.
if h_bsmng ne 0.
xkomdlgn-kmpmg = xekpo_short-menge / h_bsmng.
endif.
endif.
*- Konsignation - SOBKZ 'K' hart reinsetzen, da von Pstyp abhäng......
if xekpo_short-pstyp eq '2'.
xkomdlgn-sobkz = 'K'.
endif.
Kontierungsfelder
if xekpo_short-sobkz eq 'E' or xekpo_short-sobkz eq 'Q'.
call function 'MMPUR_EKKN_READ_EBELN_EBELP'
exporting
pi_ebeln = xekpo_short-ebeln
pi_ebelp = xekpo_short-ebelp
PI_BYPASSING_BUFFER =
PI_REFRESH_BUFFER =
tables
pto_ekkn_po = xekkn
exceptions
no_records_requested = 1
others = 2.
if sy-subrc eq 0.
read table xekkn index 1.
xkomdlgn-ps_psp_pnr = xekkn-ps_psp_pnr.
xkomdlgn-vbelv = xekkn-vbeln.
xkomdlgn-posnv = xekkn-vbelp.
endif.
endif.
append xkomdlgn. -
Hi Experts!
Can anyone tell me the BAPI to Display the Delivery Status
for a particuler sales order no or document no.
Thank U...hi,
BAPI_DELIVERYFREE_PROXY_CREATE Proxy BAPI für Upload einer kostenlosen Nachlieferug SFA-Kontext: Anle
LE_SHP_DB_DELIVERY_BUFFER Object Buffer Delivery w/Database Access
BAPI_DELIVERY_GETLIST BAPI for Reading Delivery Data
OIU_DELIVERY_NETWORK Object Buffer Delivery w/Database Access
BAPI_DELIVERY_NETWORK_CHANGE Delivery Network BAPI for Changes
BAPI_DELIVERY_NETWORK_CREATE BAPI for creating a delivery network
BAPI_DELIVERY_NETWORK_READ Display delivery network details
BAPI_INB_DELIVERY_CHANGE
BAPI_INB_DELIVERY_CONFIRM_DEC BAPI for Inbound Delivery Verification from a Decentralized System
BAPI_INB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Inbound Deliveries
BAPI_OUTB_DELIVERY_CHANGE
BAPI_OUTB_DELIVERY_CONFIRM_DEC BAPI for Outbound Delivery Confirmation from a Decentralized System
BAPI_OUTB_DELIVERY_CREATENOREF Generates Delivery Without Reference
BAPI_OUTB_DELIVERY_CREATE_SLS Generates Delivery for Customer Order
BAPI_OUTB_DELIVERY_CREATE_STO Generates Delivery for Stock Transport Order
BAPI_OUTB_DELIVERY_SAVEREPLICA BAPI Function Module for Replication of Outbound Deliveries
BAPI_OUTB_DELIVERY_SPLIT_DEC BAPI for Subsequent Outbound-Delivery Split from a Decentralized Syste
and for "Shipment
BAPI_SHIPMENT_CHANGE Change Shipment
BAPI_SHIPMENT_COST_ESTIMATE Calculate Shipment Costs of Different Forwarding Agents for Shipment
BAPI_SHIPMENT_CREATE Create Shipment -
hi ,
i want to create invoice ..the reference number will be delivery...is there any bapi/fm to do this..i tried bapi_billingdocu_createmultiple..but its not working..if there isn't any bapi what isthe other way...its an urgent thing..thank you..
Thanks,
ChallaCheck this thread for more details. It gives different aspects of creating Invoice document using BAPI for various scenarios.
Re: invoice creation through BAPI -
BAPI for delivery VL01N transaction
Hi All,
I am working on SAP ECC 5.0 version. My requirements are to create a delivery note against a purchase order. The purchase order is basically for Stock transfer between intra company (UB) and Inter Company (NB) . So am looking for BAPI that can create outbound delivery for Goods movement types 641 and 643.
I tired searching some of the already asked questions on this forum, but nothing was substantial.
If any of you know the BAPI/ worked on similar requirements, Please let me know the details with an example snippet if possible.
Thanks,
KiranHI,
check this link BAPI for Outbound Delivery Creation with reference to Sales Order - VL01N
Thanks
Mahesh -
FM/BAPI for delivery creation
Hi,
I need to create a delivery w/o order reference though VL01N0 ,but i am unable to find any BAPI / FM which could let me do so through the code w/o BDC.
Can any one suggest a FM/BAPI for the same.
KunalHi kunal,
You can use BAPI BAPI_DELIVERYPROCESSING_EXEC to deliver preceding documents like a sales order.
If this doesn't solve ur recquirement then write an BDC Program .
I have done some BDC programs On VL01n before...u will not face any problem .
ravinder. -
Hello,
Please let me know with BAPI for Inbound Delivery Create against Purchase Order.I have searched in the BAPI list but i am not getting one.Do i need to create a customized one??
Regards,
Rushikeshhello,
please help in getting an FM or BAPI to create delivery w/o PO.
i have tried GN_DELIVERY_CREATE, RV_DELIVERY_CREATE and BAPI_directprocessing_exec also..
but nthg is working...............
its all simple details i am using like for VL01no without PO...it should work...but i dnt know what i am missing...
eagerly waiting for ur response.......... -
Hi ,
Please suggest me any BAPI for updating the delivery document header.
Thanks.
Regards
DVHi
This is a BAPI code, go thru this, hope it wil help you.
reward if help.
Check this sample program for creating delivery from a sales order.
Give the sales order as input..
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
WRITE: / 'Delivery - ', t_created-document_numb. -
Dear Experts ,
I am searching the BAPi for purchase requisition create for enjoy transaction ( ME51N ) . I have found the BAPi "BAPI_PR_CREATE" .
But I am using it at SAP ECC 4.6 so here it is giving error that BAPi doesn't exist .
Suggest me.........
Thanks
AlokHi Alok,
I do not think that there is any BAPI to support enjoy PR transactions. I checked SAP note and found one note for PR BAPIs (SAP note - 499627).
Please check link below:
https://service.sap.com/sap/support/notes/499627
1. Question:
Can I use BAPI_REQUISITION_CREATE to set the fixed indicator?
Answer:
You cannot use the BAPI BAPI_REQUISITION_CREATE to set the fixed indicator.
When the BAPI BAPI_REQUISITION_CHANGE is used to make changes, the system sets the fixed indicator automatically only if the purchase requisition originates from requirements planning.
For more information, refer to Note 330206.
1. Question:
Can the BAPIs of the purchase requisition with the "CreateFromData1" and "Change" methods cover all of the functions of the EnjoySAP purchase requisition (transactions ME51N and ME52N)?
Answer:
The function modules BAPI_REQUISITION_CREATE and BAPI_REQUISITION_CHANGE do not cover all of the functions of the EnjoySAP purchase requisition transactions. This is because the two asynchronous BAPIs have been developed based on ME51 and ME52 (program SAPMM06B). The user exits from the function group MEREQ (for example, MEREQ001) are therefore not available.
In SAP R/3 Release 4.70, two new API methods are developed that are based on the EnjoySAP technology of the purchase requisition transactions ME51N and ME52N. The function modules BAPI_PR_CREATE and BAPI_PR_CHANGE are released in Release 6.00 (ERP2005).
SAP does not provide support for this because these function modules have not been released for Releases lower than 6.00. If you use these BAPIs in customer-defined programs, you must bear in mind that you are responsible for any problems that might occur. In addition, you must read Notes 109533 and 415983.
A downport to a release lower than 4.70 is not provided because developing this would involve considerable time and effort.
1. Question:
Can BAPI_REQUISITION_CHANGE process the customer enhancements ExtensionIn?
Answer:
See Note 584902.
1. Question:
Can service items be created using BAPI_REQUISITION_CREATE or changed using BAPI_REQUISITION_CHANGE?
Answer:
No, this is only possible with the new API functions for the object BUS2105. See the following point.
Hope that helps!
Regards,
Saba
Edited by: Saba Sayed on Feb 17, 2011 5:40 PM -
We are using BAPI_IncomingInvoice_CREATE with calcuate tax.
We are using one freight condition is PO which is to includued in ner price but taxes should not be calculated on freight amount.
With Standard MIRO transaction this is working correctly but when we are using BAPI for the same the taxes are being calculated on the amount inclusive of freight.
Kindly help in this regard.
ThanksAny solutions?
-
Bapi for vl01no create outbound delivery without order reference
Hi Guru's, i need help, I'm looking for BAPI VL01NO
Any suggestions?
Thanks for everything
Edited by: GaBo_s Gabo on Sep 22, 2009 8:48 PMHi,
Following is the sample code for creation of outbound delivery Using BAPI 'BAPI_DELIVERYPROCESSING_EXEC'
Which may be helpful.
PARAMETERS: p_vbeln LIKE vbak-vbeln.
DATA: BEGIN OF t_vbap OCCURS 0,
vbeln LIKE vbap-vbeln,
posnr LIKE vbap-posnr,
kwmeng LIKE vbap-kwmeng,
matnr LIKE vbap-matnr,
werks LIKE vbap-werks,
END OF t_vbap.
DATA: t_request TYPE STANDARD TABLE OF bapideliciousrequest
WITH HEADER LINE.
DATA: t_created TYPE STANDARD TABLE OF bapideliciouscreateditems
WITH HEADER LINE.
DATA: t_return TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
SELECT vbeln posnr kwmeng matnr werks
INTO TABLE t_vbap
FROM vbap
WHERE vbeln = p_vbeln.
LOOP AT t_vbap.
t_request-document_numb = t_vbap-vbeln.
t_request-document_item = t_vbap-posnr.
t_request-quantity_sales_uom = t_vbap-kwmeng.
t_request-id = 1.
t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = t_vbap-matnr.
t_request-plant = t_vbap-werks.
t_request-date = sy-datum.
t_request-goods_issue_date = sy-datum.
t_request-goods_issue_time = sy-uzeit.
APPEND t_request.
ENDLOOP.
CALL FUNCTION 'BAPI_DELIVERYPROCESSING_EXEC'
TABLES
request = t_request
createditems = t_created
return = t_return
READ TABLE t_return WITH KEY type = 'E'.
IF sy-subrc = 0.
MESSAGE e208(00) WITH 'Delivery creation error'.
ENDIF.
COMMIT WORK.
READ TABLE t_created INDEX 1.
WRITE: / 'Delivery ', t_created-document_numb, ' created'.
Let me know if any issues.
Thanks & Regards,
Naveen
Maybe you are looking for
-
Can't connect wireless due to "self-assigned IP address"
I recently switched from PC to Macbook. I cannot log on to many wifi networks I could previously access with my ThinkPad. The computer successfully finds the network and has a strong signal but will not connect. Under network status, I get a message
-
How to search for a particular word in notes app (ios6)
Sir, I can search for a note but i couldnt search for a particular word in a long note in notes app. (ios 6) is there a way to do it,or is there any app that has this 'search for word' functionality ?
-
Can't write large files to my WebDAV server
Hi, yesterday I set up a WebDAV directory on my mini using Apache 2.0.56 with digest authentication. Everything works fine when I connect from home, however, when I tried to access it from work I got some very strange reactions. Connection worked out
-
Xcode crashed while building the hello world app
I installed xcode 5.0.2 on imac 2013 with osx 10.9. Created a new helloworld xcode project. While creating no issues, while building the app getting the following error. XCode quit unexpectedly. Why it happens and what is the solution. Tried all work
-
Does Adobe provide a free API for creating PDF files
Does Adobe provide a free API (for Windows) for creating PDF files? We are currently using a basic, internally developed API for creating PDF files, but would like some additional capabilities ... in particular the ability to add a watermark that a