Background Delivery in SD (VL01N)
Hi Friends,
As per our requirment I need to do the delevery should done by background when user excute a transaction I have all mandatory fields data.
So anybudy can suggest me how to do this is there any bapi or other way??????????
Thanks and Regards,
D Tarun Kumar
considering that a report prog is associated with this Custom TCODE,
just use CALL TRANSACTION tcod [AND SKIP FIRST SCREEN] [USING itab].
itab will have all the mandatory data for the VL01N tcode screen.
This statement saves the data of the calling program, and starts transaction tcod. At the end of the transaction, the system returns to the statement following the call in the calling report.
ELSE.
without using ITAB u have to use:
SET PARAMETER ID pid FIELD f.
before CALL transaction statement. Press F1 on screen fields o VL01N and get parameter id.
you can have sample prog for this process. please search.
ags.
Similar Messages
-
Return(inbound delivery) creation through VL01N
Hello,
I wud like to create Return(Inbound) delivery through VL01N transaction. Following is the process i' m following.
1. create notification through IW51
2. create repair order through IW52
3.create return delivery ( automatically) through VL01N with reference to repair order created in step no.2.
I have searched for Function module & BAPI, but it seems there are no FM & BAPI's for such requirement.
Can any one suggest me the Functional solution for above problem.
Thanks,
AnilNormally from the Notifications, We create a Return Order ( Document Type RE) automatically. We need to the necessary configurations.
We can create the Return Delivery from VL01n. when you mention the return sales orde there the system automatically pulls the return Delivery type LR from the configuration of the sales document type RE.
otherwise you have to mention explicitly the document type = LR in the selection screen of Vl01n.
You Can use the same BAPI or FM ( the one used to create the Outbound Delivery ) and mention the document type as LR. -
How to delete or remove delivery block in VL01N using userexit?
Hi All,
Would like to seek your advice on the above mention subject. There is a scenario where during the creation of sales order (VA01) and the order type is Sample Order (ZSA). The delivery block for the customer has the status '05: Check Free of charge delivery'.
After creation of sales order, i would like to create a delivery via (VL01N) with reference to the sample sales order that i have creation as mention above. It does not allow me to create and after i hit enter, a display log prompt out with the message text: Order blocked for delivery as a result of credit check.
Question:
1. How to set the delivery block to blank or delete the delivery block via user exit during the creation of delivery (VL01N)?
2. Which form should i use in user exit: MV50AFZ1, is it FORM USEREXIT_SAVE_DOCUMENT or FORM
USEREXIT_SAVE_DOCUMENT_PREPARE?
Steps Taken:
1. User exit found is MV50AFZ1.
Appreciate your advice a lot. Thanks in advance..:)Hi,
i would suggest you to read these links first.
[http://help.sap.com/saphelp_46c/helpdata/en/93/744bf2546011d1a7020000e829fd11/content.htm]
[http://help.sap.com/saphelp_crm40/helpdata/en/dd/5607b3545a11d1a7020000e829fd11/content.htm]
this will you an idea of delivery block.
at delivery level LIKP-LIFSK field stores the delivery block value. in your case it will be 05. 90 is total block i believe.
so in your case, in user exit check for value in this field and if its 05, make your changes. be careful when you make this change; any batch jobs running at background can also get affected and start creating deliveries although it is suppose to have a delivery block.
Thanks,
Sam. -
Inbound delivery creation through VL01N
Hello,
I wud like to create inbound(return) delivery through VL01N t-code with reference of sales/repair order.
following things i am passing to VL01N screen:
1. Shipping point
2.delivery date = current date
3.repair / sales order number
4.delivery type
suggest me any FM / BAPI
Edited by: anilpat1 on Apr 7, 2009 8:39 AMHi,
Did you mean VL31N for Inbound delivery as VL31N is the transaction for Inbound delivery not VL01N.
Try this function module below if it is a collective processing.
function module GN_DELIVERY_CREATE.
let me know if it worked.
R,
Srini -
In VL10C,Unselected Line items are copied for delivery creation in VL01N
Hello,
I am trying to create outbound deliveries for an sales order using t.code VL10C. when I execute VL10C,it takes me to next screen with all sales order line items where i am selecting some line items & select Dialog button for delivery creation. In this case all line items of the sales order get copied into VL01N screen instead of copying only the selected line items.
What may be the issue? Is this standard functionality of VL10C transaction? my requirement is to create delivery for selected line items using VL10C transaction.
Regards
Gouthamhi All,
It's a standard SAP process... See OSS note 453947...
For me it's a bug, not for SAP....
But create deliveries for only selected item work in backgroung process ! According to user role parameter "selected items"
Source code :
SET PARAMETER ID 'VST' FIELD <cs_postab>-vstel.
SET PARAMETER ID 'AUF' FIELD <cs_postab>-vbelv. -
> only order number (not item)
SET PARAMETER ID 'ALT' FIELD SPACE. "n_810897
EXPORT lv50c-datbi FROM lf_datbi TO MEMORY ID 'LEDAT'.
EXPORT d_tcode FROM sy-tcode
enque FROM cx_list_profil-enque "n_602290
TO MEMORY ID 'CALLING_TCODE'.
CALL TRANSACTION 'VL01N' AND SKIP FIRST SCREEN.
regards. -
Item does not come to delivery screen. VL01N
Dear all,
After I create customer order, I invoice it then I create Delivery.
But some materials does not come to delivery screen(VL01N). Some of the materials ok..
To fix this What should I do?Hi,
Not sure if I understand your brief description on what you did correctly in the system.
Are there more than one type of item category in your Order (i.e. order-relv. and dlv-relv billing)??
You mentioned you created an Order --> Invoice --> Create Delivery..
Where order-related item is concerned, it will appear in Billing when you reference the Order number.. but where delivery-related billing is concerned, the delivery should be completed (i.e PGI) and then billed accordingly (using delivery number as reference)..
Hope this helps.
Rgds. -
Dispatch background error in bdc vl01n
Hi Guru,
I am creating a module pool program,in module pool program we have 30 input fields through this input field we store the data in z table and pass quantity,serial number and lenght in vl01n. but in forground ground working fine but background showing error.
Please help me. i am sending some code.
PERFORM BDC_NODATA USING NODATA.
PERFORM OPEN_GROUP USING GROUP USER KEEP HOLDDATE CTU.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '4001'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LV50C-BIPOS'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LIKP-VSTEL'
VSTEL_001.
PERFORM BDC_FIELD USING 'LV50C-DATBI'
DATBI_002.
PERFORM BDC_FIELD USING 'LV50C-VBELN'
VBELN_003.
PERFORM BDC_FIELD USING 'LV50C-ABPOS'
ABPOS_004.
PERFORM BDC_FIELD USING 'LV50C-BIPOS'
BIPOS_005.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '1000'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=T\02'.
PERFORM BDC_FIELD USING 'LIKP-BLDAT'
BLDAT_006.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LIPS-MATNR(04)'.
PERFORM BDC_FIELD USING 'LIKP-WADAT'
WADAT_007.
PERFORM BDC_FIELD USING 'LIKP-WAUHR'
WAUHR_008.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '1000'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'/00'.
PERFORM BDC_FIELD USING 'LIKP-BLDAT'
BLDAT_009.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LIPS-LGORT(03)'.
PERFORM BDC_FIELD USING 'LIKP-KODAT'
KODAT_010.
PERFORM BDC_FIELD USING 'LIKP-KOUHR'
KOUHR_011.
PERFORM BDC_FIELD USING 'LIPS-LGORT(01)'
LGORT_01_012.
PERFORM BDC_FIELD USING 'LIPSD-G_LFIMG(01)'
G_LFIMG_01_013.
MOVE 2 TO IDX1.
LOOP AT IT_SEQ INTO WA_SEQ.
QTY1 = WA_SEQ-QTY.
QTY = QTY1.
CONCATENATE 'LIPSD-G_LFIMG(' IDX1 ')' INTO FNAME.
PERFORM BDC_FIELD USING FNAME"'RIPW0-SERNR(01)'
QTY. "'bgl17'.
IDX1 = IDX1 + 1.
ENDLOOP.
*move 2 to idx1.
loop at it_seq into wa_seq.
concatenate 'LIPSD-G_LFIMG(' idx1 ')' into fname.
perform bdc_field using fname"'RIPW0-SERNR(01)'
wa_seq-qty. "'bgl17'.
idx1 = idx1 + 1.
endloop.
*perform bdc_field using 'LIPSD-G_LFIMG(02)'
G_LFIMG_02_014.
*perform bdc_field using 'LIPSD-G_LFIMG(03)'
G_LFIMG_03_015.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '1000'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=PSER_T'.
PERFORM BDC_FIELD USING 'LIKP-BLDAT'
BLDAT_016.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LIPS-POSNR(01)'.
PERFORM BDC_FIELD USING 'LIKP-KODAT'
KODAT_017.
PERFORM BDC_FIELD USING 'LIKP-KOUHR'
KOUHR_018.
PERFORM BDC_FIELD USING 'RV50A-LIPS_SELKZ(01)'
LIPS_SELKZ_01_019.
PERFORM BDC_DYNPRO USING 'SAPLIPW1' '0200'.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'RIPW0-SERNR(02)'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=RWS'.
MOVE 1 TO IDX.
LOOP AT ITAB INTO WA.
CONCATENATE 'RIPW0-SERNR(' IDX ')' INTO FNAM.
PERFORM BDC_FIELD USING FNAM"'RIPW0-SERNR(01)'
WA-PSLNO. "'bgl17
IDX = IDX + 1.
ENDLOOP.
*perform bdc_field using 'RIPW0-SERNR(01)'
SERNR_01_020.
*perform bdc_field using 'RIPW0-SERNR(02)'
SERNR_02_021.
PERFORM BDC_DYNPRO USING 'SAPMV50A' '1000'.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=WABU_T'.
PERFORM BDC_FIELD USING 'LIKP-BLDAT'
BLDAT_022.
PERFORM BDC_FIELD USING 'BDC_CURSOR'
'LIPS-MATNR(04)'.
PERFORM BDC_FIELD USING 'LIKP-KODAT'
KODAT_023.
PERFORM BDC_FIELD USING 'LIKP-KOUHR'
KOUHR_024.
PERFORM BDC_TRANSACTION TABLES MESSTAB
USING 'VL01N'
CTU
MODE
UPDATE.i am calling bdc code through function module.in message itab i getting
message type 'E' message id 'VL'
msgnr '461' fldname'LV50C-BIPOS' msgv1 ' '
CALL FUNCTION 'ZFM_VL01N_01'
EXPORTING
CTU = 'X'
MODE = 'A'
UPDATE = 'N'
NODATA = '/'
VSTEL_001 = '1010'
DATBI_002 = DATBI_002"'17.03.2011'
VBELN_003 = VBELN"'256'
ABPOS_004 = ABPOS_004 "'10'
BIPOS_005 = BIPOS_005"'30'
BLDAT_006 = BLDAT_009"'16.03.2011'
WADAT_007 = BLDAT_009"'16.03.2011'
WAUHR_008 = TIME "'00:00:00'
BLDAT_009 = BLDAT_009"'16.03.2011'
KODAT_010 = BLDAT_009"'16.03.2011'
KOUHR_011 = TIME "'00:00:00'
LGORT_01_012 = '1105'
G_LFIMG_01_013 = ICOUNT"G_LFIMG_01_013"'2'
G_LFIMG_02_014 = '2'
G_LFIMG_03_015 = '2'
BLDAT_016 = BLDAT_009"'16.03.2011'
KODAT_017 = BLDAT_009"'16.03.2011'
KOUHR_018 = TIME "'00:00:00'
LIPS_SELKZ_01_019 = 'X'
SERNR_01_020 = '3852'
SERNR_02_021 = '3853'
BLDAT_022 = BLDAT_009"'16.03.2011'
KODAT_023 = BLDAT_009"'16.03.2011'
KOUHR_024 = TIME "'00:00:00'
IMPORTING
SUBRC =
TABLES
MESSTAB = MESSTAB[]
ITAB =
IT_SEQ = -
Print delivery note with VL01N
Hi,
The delivery note prints only when I post the good issue. But I would like to print it automatically when I use the VL01N
I delete the routine "1" in NACE for my condition type LD00 (If goods issue has been posted for the delivery, then the output
should be created.), but I have no delivery note.
Anybody could help me, please?
Thanks
Regards
KariIn VL01n, before saving, please goto output screen.
(Menu bar -> extrax -> delivery output -> header ->)
In output screen, is the output (print) there (with yellow light)?
If it's not there, please goto check output determination analysing log.
(menu bar -> goto -> determin.analysis)
Double click the output type, and check the log on right side.
What's the log saying? -
Regarding outbound delivery VL02n and vl01n
Hi all
i need a user exit which trigrred after saving the deivery data after PGI
my requirement is to create a billing document using a bapi while doing the PGI.
if the user press PGI in back ground we must create a billing document from VL01N now i could not find out a user exit after the delivery data has been commited to database.
After commiting to the database we must create a billing document
Can any one let me know is theere any exit to create billing document for delivery after commiting to the data base.
Regards,
siva prasad.Hi,
These are all the exits related to outbound delivery. You can use as per your requirement.
V02V0001
V02V0002
V02V0003
V02V0004
V50PSTAT
V50Q0001
V50R0001
V50R0002
V50R0004
V50S0001
V53C0001
V53C0002
V53W0001
VMDE0001
VMDE0002
VMDE0003
VMDE0004
PS: Please reward points if you find this helpful.
Regads. -
User exit to prevent delivery while creating (VL01N).
Hi Experts,
Is there any User Exit, While creating Outbound Delivery with reference to Sales order using VL01N,subitem cannot be created without the related H.Level item.
So my requirement is:
Check Higher Level Item (VBAP-UEPOS), If Higher Level Item value is set for an item, ensure that the related item that the Higher Level Item value refers to is also on the same delivery. If not, then issue an error that sub item cannot be created without the related HLI item.
How to achieve this, Any user exit ? Help will be appreciated.
Thanks,
Ranjith.Hi
I think that creating your own VOFM copying requirement from SO to delivery and setting it in copy rules (tcode VTLA) you can achieve. Take an standard as a template and develop the algorithm.
I hope this helps you
Regards
Eduardo -
Hi Friends,
I have a requirment as i need to do the sales delivery in background so any budy can halp how can i do this is there any single bapi which will do the complite delivery.
Thanks and Regards
D Tarun Kumar
Edited by: Devalla T Kumar on May 26, 2009 1:54 PM
Edited by: Devalla T Kumar on May 27, 2009 9:25 AMHi,
Try this code:-
here TVBAP is the internal table containg sales order line item data and VBAP is a structure of it.
LOOP AT TVBAP INTO VBAP.
t_request-document_numb = vbap-vbeln.
t_request-material_shorttext = vbap-arktx.
t_request-document_item = vbap-posnr.
t_request-quantity_sales_uom = vbap-zmeng.
t_request-quantity_base__uom = vbap-zmeng.
t_request-id = 1. t_request-document_type = 'A'.
t_request-delivery_date = sy-datum.
t_request-material = vbap-matnr.
t_request-plant = vbap-werks.
t_request-batch = CHARG_ID."vbap-charg.
sy-batch = vbap-charg.
T_REQUEST-ID_BATCH_DETERMINATION = VBAP-CUOBJ.
T_REQUEST-STGE_LOC = '1010'.
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'
EXPORTING
DELIVERY_EXTEND =
TECHN_CONTROL =
TABLES
REQUEST = t_request
PARTNER =
PARTNER_ADDR =
TEXT_HEADER =
TEXT_LINES =
CREATEDITEMS = t_created
RETURN = t_return
EXTENSION1 =
EXTENSION2 =
CO_CHAR_VALUES =
BATCH_ATTRIBUTES =
BATCH_VALUES_CHAR =
BATCH_VALUES_CURR =
BATCH_VALUES_NUM =
TOKENREFERENCE =
EXTENSIONIN =
ITEM_SERIAL_NO =
commit work. -
As per our requirment I need to do the delevery should done by background when user excute a transaction I have all mandatory fields data.
uSING BAPI 'BAPI_OUTB_DELIVERY_CREATE_SLS'
I AM ABLE TO CREATE DELIVERY BUT STOCK IS NOT REDUCING
SO FOR THIS WHAT I HAVE TO DO????
Thanks and Regards
D Tarun KumarHi,
If I have understood your question correctly, the requirement is to reduce the time taken by transaction execution - for this some part should be made to run in background.
For this, one option would be using Thread in Web Dynrpro - There is blog on this by SAP employee...Please check it.
regards,
ganga -
Add new item automatically during delivery creation(tcode: VL01N)
Hi
Business requirement: Sales Order has material X. when delivery is created, system should add material Yautomatically in delivery.
Example:
Sales Order:
Item 10 Material X
Delivery:
Item 10 Material X
Item 20 Material Y
We are using 4.6C. We have tried to use Delivery Save Exits, but could not succeed.
Please provide inputs.
Regards
UmaHi,
I think, since you are creating the delivery with reference to Order, you cannot add line items which are not present in the Order. You should add the line item in order using the configuration, which can be copied to delivery automatically.
Regards
Vinod -
Error on delivery...vl01n
Hello Experts,
1) I am getting Error while creating delivery for particular material.
it says this material have 0 qty available.
I have cheked the stock and stock is still available of 4.600KG.
But when i Create delivery through sales order, it doesnt count on delivery so delivery qty still remain zero.
If I use same material in MIGO transaction for cost centre then its working fine.. I can post the stock which is available but its not allowing me in sales order. could you please guide me?
I have also cheked the shedule line as well so its same date , the date i careted sales order and deliveryHI,
AS per your guidance I have checked, for the material i m cheking is not confirmed in total records. it shows simulated requirement and den 0.5kg in requirement qty and confirmed qty is zero. I mean NIL.
why it showing simulated requirement?
But if I click on lineitem and den shedule line , over there it shows confirmed qty is 0.5kg , and dat is actuall requirement. but delivered qty is still shows zero.
pls help.
AS I do have stock but not able to created delivery for particular this item but rest of items in same sales orders are fine.
Pls Advice ASAP.
Thanks,
Minesh Soneji. -
User Exit or Badi for VL01N (before the delivery will be displayed)
Hello Togheter:
I have to change the sort order of the delivery items in VL01N before they will be displayed (not at the moment when they'll be stored on the database). Does anybody know any enhancement or user exit or BADI that i can use for this? I've tried with BADI LE_SHP_DELIVERY_PROC, but there is no methode which I can use for reordering the table XLIPS/LIPS before the delivery will be displayed.
Thanks in advance
KlausExits for VL01N ::::::
V02V0001 Sales area determination for stock transport order
V02V0002 User exit for storage location determination
V02V0003 User exit for gate + matl staging area determination (headr)
V02V0004 User Exit for Staging Area Determination (Item)
V50PSTAT Delivery: Item Status Calculation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50R0001 Collective processing for delivery creation
V50R0002 Collective processing for delivery creation
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50S0001 User Exits for Delivery Processing
V53C0001 Rough workload calculation in time per item
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53W0001 User exits for creating picking waves
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
Hope they may help a little.
Regards,
Jignesh
Maybe you are looking for
-
Log & Transfer of AVCHD fails to transfer - Write TimeCodeTrack Error -2008
Hi, I'm testing out my new Canon HF11 and copied the AVCHD directory for a test shot onto my hard drive, created a new project in FCE 4.01, created a Bin, set it to default capture bin, then started Log & Transfer. When I select the AVCHD directory I
-
Trying to reinstall itunes 11.1.4 to my PC and I keep getting this message: Service Apple Mobile Device(Apple Mobile Device) failed to start. verify that you have sufficeint privleges to start system services. Then it says, ABORT< RETRY>IGNORE. I cli
-
When I open the Adobe Story desktop application and sign in, I immediately receive the following message: "ERROR: Sorry, your Story Free subscription does not allow access to the application in online mode. You can work in the offline mode to retriev
-
Printing page name and other information
I'm new to mac and having a bit of a time trying to understand how many print interfaces there are. Loving things so far but I need to take a minute to figure some things out. 1. Is there a way to set my HP Printer to always print the name of the fil
-
One short beep and one 1 beep on hp pavilion media center 8120n
My tower is not booting up when I turn it on. My son took the side off and was going to put more memory in it for me, but in the end he didn't. He put the old memory back in and put the side casing back on. Today, when I turn it on, it has 1 short