FM for VL10F & PGI
Hi friends,
I try to create outbound delivery (VL10F) and VL02N in background job by using BDC, its working fine only .
BUT I need a FM or BAPI to create a outbound delivery (VL10F) for PO and For PGI.
For VL10F the input parameters are Purchasing Document,Supplying plant .
And For PGI(VL02N) the input details delivery qty and picking qty and storage qty .
It will be better if you can give details about input parameters with example.
Pls Reply immediately it urgent.
Thanks in Advance.
Regards,
Ekadevi.S
Hi
i want to use FM to create outbound delivery with ref to schedule agreement
did u remember what is the FM you used for above requirement?
thnaks
Similar Messages
-
Accounting period problem for doing PGI
Hi Friends
I am getting this error while doing PGI , I have entered Actual goods issue date in delivery header manually . 15 .11.2008 . I am trying to do PGI on 7.12.2008 .
u201C@5C\QError@ E F5 286 900001 Period 008/2008 is not open for account type S and G/L 500010 @35\QLong text exists@ 200.F WHL ASSY ALUM 16 X 7 30,000 EA 0000000685u201D
I guess it is because of accounting period closing for November 2008 .
Just I want to know ,for doing PGI also , does accounting period maters ?
If it maters , I request you to mention solution please .
With regards
Jayapala S.HHi jaypala
Firstly go to MMPV and check the closing period of your company code if it is in past close the month by MMRV and then do delivery and PGI and check still if it is not working then Go to OB52 and maintain for account type S with the G/L account 500010 and the closing month and the year.
Regards
Srinath -
BAPI or FM for VL10F (outbound delivery)
Hai All,
Can Anyone say how to create outbound delivery (VL10F) By Using FM or BAPI.
Explain With Example.
Pls Most Urgent.
Regards,
Ekadevi.SHi,
These are the existing BAPI's for Outbound 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
Regards,
Sandeep -
IDOC filtering for VLO2N PGI interface
Hello everyone,
we have an outbound interface online. An idoc is generated on PGI in VL02N (Interface ART_DVT).
We have another outbound interface which generates an IDOC for deliveries (Interface ART_OUT).
Both these interfaces update a table in a third party system.
As per my current requirement, the PGI interface should be triggered only for deliveries for which ART_OUT has been triggered.
The ART_DVT interface is being triggered via message control NACE.
Message Type : DELINF
Basic Type : DELVRY05
Whenever ART_OUT is triggered, a z-table gets updated in SAP with the necessary details.
I think I can check here before triggering the ART_DVT interface if i could use an user-exit in VL02N.
Any help is appreciated.
Thanks in advance.
Regards,
XineohpiCan someone atleast tell me if there is an user-exit or badi using which i can restrict the PGI idoc generation based on some check or if the message control execution part can be restricted..
in dire need of help......
Regards,
Xineohpi -
Hi all,
Could Anyone tell me what are all the BADI / user exits used in VL10F for populating error msg without quiting the tcode.
Thanks In advance.
Regards,
Ekadevi.SHi,
Check Note 198137 - VL10: Customer-specific enhancements / user exits.
Regards,
Eduardo -
Hi,
I want to use user exit which can be triggered during Delivery PGI.
I read on the forums that I can use BADI LE_SHP_GOODSMVMT.
I searched for this BADI in transaction SE18 and there is no BADI with this name.
Also I searched in Customization for BADIs under Logistocs> Shipping->System Modifications. There is no item called "Business Addins".
Can anyone help to find the user exit or BADI for PGI?
Thanks,
Ashok.Hi Ashok,
Here are the user exits available for PGI.
MBCF0002 - Customer function exit: Segment text in material doc. item
MBCF0005 - Material document item for goods receipt/issue slip
MBCF0006 - Customer function for WBS element
MBCF0007 - Customer function exit: Updating a reservation
MBCF0009 - Filling the storage location field
MBCF0010 - Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 - Read from RESB and RKPF for print list in MB26
MB_CF001 - Customer Function Exit in the Case of Updating a Mat. Doc.
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
Help reqd for Reverse PGI - VL09
When i try to a reverse goods issue, using transaction VL09, the following error mesage occurs sometimes - mainly with Batch Split on Bulk Deliveries
Document **** does not contain any selectable items
The document or item entered cannot be adopted.
The error message mentions something about Suggest Zero lines indicator set ??
I am confused with the above, your help would be much appreciated
Thanks
TonyHi,
Are you processing VL09 with more number of documents or one by one?
Thanks
Krishna. -
Function module/BAPI for Pgi creation
hi all,
any standard function module/ BAPI for create PGI.
i know BAPI_OUTB_DELIVERY_CONFIRM_DEC, suppose if we are using PGI reverse not possibul.
regardsThis is not answered
-
VL06P : BAPI/Function Module for PGI
Hi All,
Anybody have the information about the BAPI/FM for doing PGI with VL06P for delivery.
ThanksHi,
You can do the PGI through following BAPI FM
BAPI_OUTB_DELIVERY_CONFIRM_DEC
Regards,
Krishnakumar -
To do PGI for extra quantity?
hi regarding negative stock scenario, i have done config for "allow negative stock" in material master level,valuation area level, plant,storage level by T.code "OMJ1".Now it is allowing me to do Sales order for more qty, but it is not allowing me for doing PGI. can u guide me.
scenario:
PO=100qty
MIGO=100qty
SO=110qty
But while doing PGI for 110 , it is not allowing.Please guide me.
thanks in advance
T.LakshmisundaranIf its a non stockable item then use item category TATX. If its stockable item then you cannot do PGI without stock of material as it has accounting implications also.
Regards,
GSL. -
URGENT- Update for picking confirmation & PGI
Hi Experts,
Is there any FM/BAPI to update delivery for both the picking confirmation & PGI.
I am trying to use WS_UPDATE_DELIVERY_2 but it is triggerring me an error at delivery positions.
If it is the correct FM used then plz forward me the parameters for the req.
Thank you,
SangeethaCheck with below logic :
if flag = 'X'. Assume that flag = X means - PGI else delivery update.
Use FM - WS_DELIVERY_UPDATE
else.
Use FM : SD_DELIVERY_UPDATE_PICKING
endif.
Check the below code for ref PGI ..
REPORT ZWM_OVERWEIGHT_FIX no standard page heading
message-id zwm.
======================================================================
Program Name : ZWM_OVERWEIGHT_FIX *
Description : Tool to fix Overweight in delivery line item, *
Used All Function module to cancel invoice , *
Reverse the goods issue ,Update Delivery qty,Create *
invoice *
Author : Seshu *
Date : 05/08/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
05/08/07| Seshu | DEVK921979 | Initial *
D A T A - D E C L A R A T I O N *******************
Tables
Tables : vbak,
vbap,
vbfa,
likp,
lips,
vbrk,
vbrp.
Internal Tables
data : i_lips like lips occurs 0 with header line,
i_vbap like vbap occurs 0 with header line.
Variables
data : v_deliv like vbfa-vbelv,
v_invoic like vbfa-vbelv.
Data Declaration Part for Post Goods Issue
DATA: l_vbeln LIKE likp-vbeln,
l_vbkok LIKE vbkok,
i_prot LIKE prott OCCURS 0 WITH HEADER LINE,
ef_error_any_0 TYPE c,
ef_error_in_item_deletion_0 TYPE c,
ef_error_in_pod_update_0 TYPE c,
ef_error_in_interface_0 TYPE c,
ef_error_in_goods_issue_0 TYPE c,
ef_error_in_final_check_0 TYPE c,
d_return LIKE bapireturn1.
Internal tables for BAPI Function Module
data : i_cret like BAPIRETURN1 occurs 0 with header line,
i_csucess like BAPIVBRKSUCcESS occurs 0 with header line,
i_ret2 like bapiret2 ,
flag type c,
i_mesg like mesg occurs 0 with header line.
Data Declaration for Invoice Creation
DATA: VBSK_I LIKE VBSK.
data: d_success type c.
DATA: XKOMFK LIKE KOMFK OCCURS 0 WITH HEADER LINE,
XKOMV LIKE KOMV OCCURS 0 WITH HEADER LINE,
XTHEAD LIKE THEADVB OCCURS 0 WITH HEADER LINE,
XVBFS LIKE VBFS OCCURS 0 WITH HEADER LINE,
XVBPA LIKE VBPAVB OCCURS 0 WITH HEADER LINE,
XVBRK LIKE VBRKVB OCCURS 0 WITH HEADER LINE,
XVBRP LIKE VBRPVB OCCURS 0 WITH HEADER LINE,
XVBSS LIKE VBSS OCCURS 0 WITH HEADER LINE,
XKOMFKGN LIKE KOMFKGN OCCURS 0 WITH HEADER LINE.
S E L E C T I O N - S C R E E N ******************
Selection-screen
Selection-screen : begin of block blk with frame title text-001.
parameters : p_vbeln like vbak-vbeln obligatory.
selection-screen : end of block blk.
A T - S E L E C T I O N - S C R E E N ***************
Validation on Sales order
at selection-screen on p_vbeln.
Check the data on VBAK Table
select single vbeln from vbak into vbak-vbeln
where vbeln = p_vbeln.
if sy-subrc ne 0.
message e006 with p_vbeln.
endif.
S T A R T - O F - S E L E C T I O N *******************
Start-of-selection.
break sreddy.
Get the Invoice Number corresponding Sales Order Number
perform get_invoice.
Step 1.
Cancel the Invoice - Transaction VF11
perform cancel_invoice.
Reverse the goods issue
perform reverse_goodsissue.
Get the Order and Delivery Items
perform get_sales_deliv.
Delivery Change
perform Delivery_change.
Create Invoice document
perform invoice_create.
E N D - O F - S E L E C T I O N *******************
end-of-selection.
if flag = 'X'.
message i012 with p_vbeln.
endif.
*& Form get_invoice
Get Invoice Number
FORM get_invoice.
Clear Variables
clear : v_deliv,
v_invoic,
flag.
Get the Delivery Number First
select single vbeln from vbfa into v_deliv
where vbelv = p_vbeln
and vbtyp_n = 'J'.
if sy-subrc ne 0.
message i004 with p_vbeln.
stop.
endif.
Get the Invoice Number
select single vbeln from vbfa into v_invoic
where vbelv = p_vbeln
and vbtyp_n = 'M'.
if sy-subrc ne 0.
message i003 with p_vbeln.
stop.
endif.
ENDFORM. " get_invoice
*& Form cancel_invoice
Cancel the Invoice
FORM cancel_invoice.
clear : i_ret2,
i_cret,
i_csucess.
refresh : i_cret,
i_csucess.
CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1'
EXPORTING
BILLINGDOCUMENT = v_invoic
TESTRUN =
NO_COMMIT =
BILLINGDATE =
TABLES
RETURN = i_cret
SUCCESS = i_csucess
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = space
IMPORTING
RETURN = i_ret2.
read table i_cret with key type = 'E'.
if sy-subrc ne 0.
message i005 with v_invoic.
stop.
endif.
ENDFORM. " cancel_invoice
*& Form reverse_goodsissue
Reverse the goods Issue
FORM reverse_goodsissue.
Local Variable
data : lv_vbtyp like likp-vbtyp.
clear : i_mesg,
lv_vbtyp.
refresh : i_mesg.
select single vbtyp from likp into lv_vbtyp
where vbeln = v_deliv.
CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE'
EXPORTING
I_VBELN = v_deliv
I_BUDAT = sy-datum
I_COUNT =
I_MBLNR =
I_TCODE =
I_VBTYP = lv_vbtyp
TABLES
T_MESG = i_mesg
EXCEPTIONS
ERROR_REVERSE_GOODS_ISSUE = 1
OTHERS = 2
if sy-subrc ne 0.
message i007 with v_deliv.
endif.
ENDFORM. " reverse_goodsissue
*& Form get_sales_deliv
Get the Sales order and Deliv Items
FORM get_sales_deliv.
Local Variables
data : lv_kwmeng like vbap-kwmeng.
clear : i_lips,
i_vbap.
refresh : i_lips,
i_vbap.
Select the data from LIPS
select * from lips into table i_lips
where vbeln = v_deliv.
if sy-subrc ne 0.
message i008 with v_deliv.
stop.
endif.
sort i_lips by vbeln posnr.
Get the Sales order Item Data.
select * from vbap into table i_vbap
where vbeln = p_vbeln.
if sy-subrc ne 0.
message i006 with p_vbeln.
stop.
endif.
sort i_vbap by vbeln posnr.
Compare delivery Item and Order Items
loop at i_lips.
clear lv_kwmeng.
read table i_vbap with key posnr = i_lips-posnr.
if sy-subrc eq 0.
lv_kwmeng = i_vbap-kwmeng * 2.
if lv_kwmeng >= i_lips-lfimg.
i_lips-lfimg = i_vbap-kwmeng.
modify i_lips.
endif.
endif.
endloop.
ENDFORM. " get_sales_deliv
*& Form Delivery_change
Delivery Update
FORM Delivery_change.
Clear : i_prot.
refresh : i_prot.
Delivery Update
CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
EXPORTING
do_commit = 'X'
TABLES
t_delivery_items = i_lips
prot = i_prot
EXCEPTIONS
conversion_overflow = 1
essential_data_missing = 2
error = 3
nothing_to_update = 4
lock_after_update_failed = 5
error_in_delivery_update = 6
OTHERS = 7.
COMMIT WORK.
IF sy-subrc <> 0.
MESSAGE i009 with v_deliv.
endif.
Post Goods Issue
CLEAR: d_return,
i_prot,
l_vbeln,
l_vbkok.
REFRESH i_prot.
CLEAR: ef_error_in_item_deletion_0 ,
ef_error_in_pod_update_0 ,
ef_error_in_interface_0 ,
ef_error_in_goods_issue_0 ,
ef_error_in_final_check_0 .
carry out goods issue
l_vbeln = v_deliv.
l_vbkok-vbeln_vl = l_vbeln.
l_vbkok-wabuc = 'X'.
carry out goods issue
l_vbeln = v_deliv.
l_vbkok-vbeln_vl = l_vbeln.
l_vbkok-wabuc = 'X'.
SET UPDATE TASK LOCAL.
CALL FUNCTION 'WS_DELIVERY_UPDATE'
EXPORTING
vbkok_wa = l_vbkok
synchron = 'X'
no_messages_update = ' '
update_picking = 'X'
commit = 'X'
delivery = l_vbeln
nicht_sperren = 'X'
if_error_messages_send_0 = space
IMPORTING
ef_error_any_0 = ef_error_any_0
ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
ef_error_in_pod_update_0 = ef_error_in_pod_update_0
ef_error_in_interface_0 = ef_error_in_interface_0
ef_error_in_goods_issue_0 = ef_error_in_goods_issue_0
ef_error_in_final_check_0 = ef_error_in_final_check_0
TABLES
prot = i_prot
EXCEPTIONS
error_message = 1
OTHERS = 2.
if sy-subrc ne 0.
message i010 with v_deliv.
else.
COMMIT WORK .
endif.
ENDFORM. " Delivery_change
*& Form invoice_create
Invoice Creation
FORM invoice_create.
refresh: XKOMFK, XKOMV,
XTHEAD, XVBFS,
XVBPA, XVBRK,
XVBRP, XVBSS.
clear : XKOMFK, XKOMV,
XTHEAD, XVBFS,
XVBPA, XVBRK,
XVBRP, XVBSS,
VBSK_I.
VBSK_I-SMART = 'F'.
XKOMFK-VBELN = v_deliv.
XKOMFK-VBTYP = 'J'.
APPEND XKOMFK.
CALL FUNCTION 'RV_INVOICE_CREATE'
EXPORTING
VBSK_I = VBSK_I
WITH_POSTING = 'C'
TABLES
XKOMFK = XKOMFK
XKOMV = XKOMV
XTHEAD = XTHEAD
XVBFS = XVBFS
XVBPA = XVBPA
XVBRK = XVBRK
XVBRP = XVBRP
XVBSS = XVBSS.
if sy-subrc eq 0.
COMMIT WORK.
flag = 'X'.
else.
message i011 with p_vbeln.
endif.
ENDFORM. " invoice_create
Thanks
Seshu -
Dear all,
I want BAPI for PGI(Post Goods Issue) against sales order.Can anybody suggest BAPI for this?Hi,
For delivey, we can use BAPI_OUTB_DELIVERY_CREATE_SLS also, along with those mentioned above bapis.
Even i too had the same requirement earlier, that is, a BAPI for PGI, but dint find any. Finally we did BDC for the PGI part of the sales cycle.
Regards
Kalyani -
To get open order quantity for list of materials
Hi Gurus,
I have a typical requirement for development of 1 function module and below are the details for it:
I want to have the open order quantity (pending for delivery & PGI) for materials by entering sold-to-party, ship-to-party and sales organisation.
Can i get list of all the materials when are open with the quantity of that materials which are yet to be delivered. And I have only ship-to-party and sales organisation as input parameter.
I would prefer if standard function module is available or I would also like to have some code or logic to ful fill the above requirement. And also I would like to inform you that I have check VA05 transaction and it is not useful to me as it does not take into consideration partial delivery. I have also check backorder list transaction V_05 and it is not useful too.
Please reply me fast as I am in urgent requirement of this.
If you are not clear in requirement then please let me know.
Regards,
SagarRich,
No.
This is for creating custom VA01 transaction.
Before creating the SO, I need to validate the minimum order quantity for each material for that customer.
Thanks
Sundar -
Dear Guru's Please let me know the T.code's for the fallowing
Dear Guru's,
Please let me know the transation codes to see
List of Open sales orders based on the delivery block (other than VA05)
List of invoices not yet realesed to account.
List of Invoices which are not cleared(for which f-32 not happend)
List of deliveries for which PGI happed not invoiced.
Regards,
Madhu
Highly rewardedDear Madhu,
List of Open sales orders based on the delivery block (other than VA05) - VA14L
List of invoices not yet realesed to account. - VFX3
List of Invoices which are not cleared(for which f-32 not happend) - FBL5N (Billing Type - BL against which Collection Doc. DZ is not found)
List of deliveries for which PGI happed not invoiced. - VF04 (not sure, as this is billing due list; and it may contain delivery doc. w/o PGI. Just check)
Please check with VL06F. Here, under Tab: Status: Outb. Delivs, there is field: Billing status
Maintain entry in to this field as "A - Not yet Processed"
Best Regards,
Amit -
Auto Creation of Delivery with PGI and Billing after creation of Sale Order
Dear Experts,
I am having one Req. like...After creation of sales order ..automatic Delivery and Billing should be done.
Right now i m able to create automatic Delivery but PGI is not happening for that delivery.
Is there any configuration I have to do ... or by any user exit we can get the solution.
Can u please provide me solution for this.
Regards,
Sanket.Hello,
yes, you can create the PGI Atomatically by BATCH JOB using the program nder the VL23 transaction code.
Goto the Transaction code SM36 to create a job for the program SAPMSSY0 which is the program for the AUTO PGI
create a variant for the Delivery document types and sales organisation combinatioans and add this variant to the bath job created in SM36.
Set the time of the Job to run after every 5 minutes, so once the job exected it will pcik all the Deliveries which are pending for the PGI.
After the PGI done you can run SDBILLDL program to create the Billing for all the document which were cleared and due for Billing.
Hope it is clear for yo, please revert if you need frther clarification .
santosh
Maybe you are looking for
-
Scheduling agreement delivery schedule for a next month.
Hi! What are the setting I have to maintain so that delivery schedules are transmitted for particular month not beyond that ? Thanks and regards, Suranjana
-
"Buying on behalf" get an error
Hi, When I'm using the "shop on behalf" procedure, I get the following error after I add an item to the shopping cart: "Business Partner does not exist" message number R1 201. Any idea? Than you, Joseph
-
How to send 0-bit confirmation file after the original file upload finished
Hi All, We are using Receiver FTP adapter (FTPS, FTP over SSL) to send/upload a Idoc file to external partner FTP server. Along with the IDOC file to be uploaded, and as soon as the IDOC file upload is finished, we will need to upload a 0-bit "confir
-
SQL Developer tool sometimes does not display data with date type
run the following query using the sql developer tool - select effective_date from table1 where id = 123; (the effective_date is stored in the database as date.) one record is returned with no date in the filed. However, if I change the query to selec
-
Regarding Business object roles in CRM
Hello friends, What are the business object roles in CRM ?can any one can explain about this. Regards, Rajasekhar.