T-code for delivery note
Hi experts,
What is the t-code for delivery note creation.
thanks
Hi
Kumar
Tcode
>VL01N Creation
>VL02N Change / delete
>VL03N Display
>VL09 Goods issue reverse.
Thx.
Similar Messages
-
Automatic form generation on creation transfer order for delivery note?
Hi,
I have to create a form that should automatically be generated on the creation of a transfer order for delivery note. How do I trigger this automatic creation of the form? And how can the transfer order number be passed to my print program?
Thx!hi christophe,
To issue the delivery output, go to transaction VL02N.
Then go to EXTRAS-> OUTPUT->HEADER->EDIT
In the Message output screen enter the relevant output type created for the delivery.
Choose the relevant medium of output.
Choose Simple Mail, in this case the field NAST-NACHA will be having a value of 7.
Specify the Partner Function; in this case it is MA -> Mail partner address
Select the Communication Method for the output type maintained.
This will take you to the SAPOFFICE screen.
Enter there the E-Mail Address to which you want to send the delivery document as PDF.
A mail will be sent to the e-mail address of the E-Mail Address specified, with the delivery output form as a PDF attachment.
hope it will help u ..
*& Report ZZ_TEST *
REPORT zz_test .
INCLUDE zz_test_top.
INCLUDE zz_test01.
FORM entry *
--> RETURN_CODE *
--> US_SCREEN *
FORM entry USING return_code us_screen.
CLEAR retcode.
xscreen = us_screen.
PERFORM processing USING us_screen.
CASE retcode.
WHEN 0.
return_code = 0.
WHEN 3.
return_code = 3.
WHEN OTHERS.
return_code = 1.
ENDCASE.
ENDFORM. "entry
*& Include ZZ_TEST_TOP *
TABLES : nast,
tnapr.
TYPES : BEGIN OF t_SOUDNAMEI1.
INCLUDE STRUCTURE SOUDNAMEI1.
TYPES : END OF t_SOUDNAMEI1.
Internal Table declarations
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
*Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
i_lips LIKE lips OCCURS 0 WITH HEADER LINE,
i_SOUDNAMEI1 TYPE STANDARD TABLE OF t_SOUDNAMEI1.
Work Area declarations
DATA:w_objhead TYPE soli_tab,
wa_control_parameters TYPE ssfctrlop,
wa_output_options TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng TYPE sodocchgi1,
w_data TYPE sodocchgi1,
w_buffer TYPE string,"To convert from 132 to 255
wa_SOUDNAMEI1 TYPE t_SOUDNAMEI1,
Variables declarations
w_form_name TYPE rs38l_fnam,
w_len_in LIKE sood-objlen,
w_len_out LIKE sood-objlen,
w_len_outn TYPE i,
w_lines_txt TYPE i,
w_lines_bin TYPE i,
retcode TYPE sy-subrc,
xscreen TYPE c,
w_spld TYPE usr01-spld,
w_receiver TYPE SOXNA-FULLNAME,
w_OBJ_RECORD TYPE OBJ_RECORD,
w_user type sy-uname,
w_email TYPE ad_smtpadr.
Constants Declaration
CONSTANTS : c_x TYPE c VALUE 'X',
c_atrate(1) TYPE c VALUE '@'.
*& Include ZZ_TEST01 *
FORM PROCESSING *
FORM processing USING proc_screen.
SELECT * FROM lips
INTO TABLE i_lips
WHERE vbeln = nast-objky.
Call Function module to Getfunction Module name Generated by Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = tnapr-sform
IMPORTING
fm_name = w_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
retcode = sy-subrc.
ENDIF.
CLEAR : wa_control_parameters,
wa_output_options.
CASE nast-nacha.
WHEN '1'.
wa_control_parameters-device = 'PRINTER'.
WHEN '7'.
DATA: l_email TYPE ad_smtpadr.
wa_output_options-tdnoprev = c_x.
wa_control_parameters-getotf = c_x.
To get the default output device maintained in the
User profile
SELECT SINGLE spld FROM usr01
INTO w_spld
WHERE bname EQ nast-usnam.
IF sy-subrc EQ 0.
MOVE w_spld TO wa_output_options-tddest .
ENDIF.
wa_output_options-tdnoprev = c_x.
wa_control_parameters-getotf = c_x.
To get the email address maintained for the particular output
CALL FUNCTION 'NAST_GET_MESSAGE_OBJECT_RECV'
EXPORTING
pi_objkey = nast-tdname
IMPORTING
pe_addr = w_receiver
CHANGING
pc_objhandle = w_obj_record
EXCEPTIONS
maildata_not_readable = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
IF w_receiver NA c_atrate.
To retrieve the E-Mail Id in case we get the User name from NAST
CLEAR wa_soudnamei1.
REFRESH i_soudnamei1.
MOVE w_receiver TO wa_soudnamei1-fullname.
To get the user name
CALL FUNCTION 'SO_NAME_CONVERT_API1'
EXPORTING
name = wa_soudnamei1
TABLES
names = i_soudnamei1
EXCEPTIONS
user_not_exist = 1
parameter_error = 2
x_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
CLEAR wa_soudnamei1.
READ TABLE i_soudnamei1 INTO wa_soudnamei1 INDEX 1.
MOVE wa_soudnamei1-sapname TO w_user.
To get the e-mail Id maintained in the user profile
CALL FUNCTION 'FTR_CORR_CHECK_EMAIL_SAP_USER'
EXPORTING
i_user = w_user
IMPORTING
e_email_address = l_email
EXCEPTIONS
mail_address = 1
determination_error = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
MOVE l_email TO w_receiver.
ENDIF.
MOVE w_receiver TO w_email.
ENDCASE.
wa_control_parameters-no_dialog = c_x.
wa_control_parameters-langu = nast-spras .
wa_output_options-tdteleland = nast-tland.
wa_output_options-tdtelenum = nast-telfx .
wa_output_options-tdsenddate = nast-erdat .
wa_output_options-tdsendtime = nast-eruhr .
wa_output_options-tddataset = nast-dsnam .
wa_output_options-tdsuffix1 = nast-dsuf1 .
wa_output_options-tdsuffix2 = nast-dsuf2 .
wa_output_options-tdimmed = nast-dimme .
wa_output_options-tddelete = nast-delet .
wa_output_options-tdautority = nast-tdautority.
wa_output_options-tdcovtitle = nast-tdcovtitle .
wa_output_options-tdcover = nast-tdocover .
wa_output_options-tdreceiver = nast-tdreceiver.
wa_output_options-tddivision = nast-tddivision.
wa_output_options-tdcopies = nast-anzal .
wa_output_options-tdnewid = c_x.
wa_output_options-tdarmod = nast-tdarmod.
wa_output_options-tdnoarmch = c_x.
CALL FUNCTION w_form_name
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = wa_control_parameters
output_options = wa_output_options
user_settings = ' '
IMPORTING
job_output_info = w_return
TABLES
it_lips = i_lips
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF nast-nacha EQ 7 AND sy-subrc EQ 0.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = w_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING ' ~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~ '.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
REFRESH: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES w_lines_bin.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
CONCATENATE 'Delivery' 'Note'
INTO w_doc_chng-obj_descr.
*w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = w_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = w_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = w_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Delivery' 'Note' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = w_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = w_email.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDIF.
ENDFORM. "processing -
How to reverse goods issue for delivery note by using IDoc
Hi all,
I would like to reverse goods issue and picking request for delivery note by using inbound IDoc.
I used message type SHPCON and IDoc type DEVLRY03 for posting goods issue in inbound processing and it's work but I couldn't find solution for posting reverse goods issue.
Pls let me know which IDoc type or any ways for posting goods issue reversal and cancelling picking request.
Thanks for your time.
Su R.Hello,
For this requirements we can actually follow two Approaches that I can think of. Here they are.
Approach 1
Little Complex Approach. What we can do is to make use of the Same Function Module (Posting Program) IDOC_INPUT_DELVRY to do the Delivery Updates (Except reversing the Goods Issue). During this, we can make use of one of the Customer Functions available in the Enhancement V55K0001 and satisfy our Requirement.
Approach 2
We can actually code a Custom Posting Program (Function Module) in which the first part will take care of updating the Delivery & if the PGI is done, then we can make use of the Function Module BAPI_GOODSMVT_CANCEL to reverse the PGI.
I think the later Approach is much easier rather than going for the Standard Function Module (Posting Program), Exits and find a place where we have to find another Enhancement Spot / Enhancement where we can call the above FM to Cancel the Goods Movement.
Hope these inputs were helpful.
Thanks and Regards,
Venkat Phani Prasad Konduri -
Reg : change pointer mechanism for triggering the IDOC for delivery note
Hi ,
I am working on a change pointer mechanism for triggering the IDOC for delivery note and will be using this message class DESADV.
So SAP has suggested for assigning the message class DESADV with the function module in MASTERIDOC_CREATE_SMD_DESADV in BD60 transaction code.
So I was looking to create this MASTERIDOC_CREATE_SMD_DESADV function module in SAP and SAP suggesting that we should create this MASTERIDOC_CREATE_SMD_DESADV function module as same as the function module MASTERIDOC_CREATE_SMD_MATMAS.
So do anyone knows that is there any tool has been provided by SAP for creating this function module MASTERIDOC_CREATE_SMD_DESADV in SAP system for triggering the change pointer mechanism for outbound Delivery.
Thanks !
Regards,
KiranHi,
When you are change pointer the system itself will take care of sending the changed master data to your partner system and the user will not have any intervention. If you really wanted to have that then you need to use the change pointers to read the master data which is modified in a custom program and then display that on the screen. Once the user selects that master data records then trigger an IDOC for creating the idoc for that master data and also flag that master data record as processed in the SAP BDCPS standard table, so that the same record will not be picked. If you wanted to know how the change pointers piece of code is written go through the program RBDMIDOC and you can understand how the change pointers logic is written.
Thanks,
Mahesh. -
Hi ,
How to set default printer for delivery note...
PrashanthHi There,
Do this by printer configuration in the spool.
Go to T-Code SP01,
Execute the spool request,
Then select the required spool and change the printer name in the option 'Print with changes parameters' from the menu option spool request.
Thanks,
Raja -
LT03 transfer order for delivery note
Hi Guys,
I try to execute the transfer order for delivery note with Lt03 after saving my delivery, but i got the error message No item that are to be picked were found. Ho can i solve that?
Plase need ur help.
Thankshi
then check in OVLP whether u have checked box for u r item category
and also check the document flow it might have already picked -
WMTA output type for delivery note.
hey experts
we are using output type WMTA (automatic TA) for delivery note with Medium 8 (Special Function) & date/time 4 (send immdiately when saving appli).
In production server when user save delivery WMTA trigger with ZPLF(std delivery outpt type) in 2nd line and print the doc.
but
In Dev & Qas server when i save the delivery document. it only trigger WMTA and it is not printing the delivery note
i guess unless until WMTA not trigger with ZPLF printing is not possile.
i want know how WMTA output type trigger with ZPLF output type in Production Server.
Why WMTA not triggering the ZPLF in DEV & QAS.
thanks
Edited by: manojverma on Jul 2, 2011 4:40 PMHi MdZ,
I looked at the analysis output. ZD04 output is what i am after. Don't understand the followings:
Q1 - why the ordering in anaylsis is different than in output determination procedure. For example:
In Analysis Output: i have:
LDOO - Output not found
MAIL - manual output
PLOO - Output not found
Z940 - Output found
ZBOL - Output not found
ZD04 - OUTPUT NOT FOUND
The Output Determination Procedure as:
Step Counter CType
10 1 LD00
12 1 ZLFX
13 0 LALE
14 1 ZBOL
20 2 MAIL
75 1 ZD04
90 1 PL00
110 1 Z940
Step 10 should be read , then step 12, and so on. Why is the ordering in procedure different than in
output analysis ?
Q2. Why did it display ZD04 not found when ZD04 appear on the delivery output as green light ? When i drill down, it show 2 access sequence. Access 10 stated Output found. Access 20 stated Output not found.
Thank you.
Joyce -
User exit for Delivery note in MIGO transaction
hi friends,
Basically i am MM Functional ,so please guide me how worte user exit in SAP system . if any body face this same issue pls put progrmme and where it placed
In case we enter the duplicate delivery note from the same vendor in the same physical/financial year, should get error/warning message
In MIGO delivery note not accpeted repeted DC numbers
Use MBCF0002 Customer function exit: Segment text in material doc. item
EXIT_SAPMM07M_001 to give ur coding for duplicate delivery note entry and chk.
Field name i_mkpf-xblnr for delivery note number>
sivasankar cherukuri wrote:
> hi friends,
>
> Basically i am MM Functional ,so please guide me how worte user exit in SAP system . if any body face this same issue pls put progrmme and where it placed
>
> In case we enter the duplicate delivery note from the same vendor in the same physical/financial year, should get error/warning message
>
> In MIGO delivery note not accpeted repeted DC numbers
>
> Use MBCF0002 Customer function exit: Segment text in material doc. item
>
> EXIT_SAPMM07M_001 to give ur coding for duplicate delivery note entry and chk.
>
> Field name i_mkpf-xblnr for delivery note number
Go to TCode CMOD and select an existing project / create a new project.
Select enhancement assignment and give the name EXIT_SAPMM07M_001
Save the change.
Then enter again and double click on the name provided above. Inside there will be an INCLUDE ZX*****
Double click on that include, the system will ask to create a program. Accept it.
Now you have the open field to make your validation.
Regards,
Aroop -
EDIFACT D96A for Delivery Note
Hi Gurus,
Which Standard is available in spectrum of EDIFACT D96A for Delivery Note?
I can only find 2 for Delivery Note :-
1. DELFOR : Delivery Schedule
2. DELJIT : Delivery JIT
Which one to use for Delivery Note or there is someone else for Delivery Note?
ThanksI do not have any such doc. Anybody in your team/org having functional knowledge about electronic transaction flow and EDIFACT may provide you such doc/mapping. I just know it because I have worked with this EDIFACT message earlier.
Regards,
Anuj -
Hi,
can anybody send me the data how can we design the layout and print program using smart form for delivery note in sd.
Thanks & Regards,
sunil.DELIVERY NOTE
Output type : LD00
layout is smartform name : LE_SHP_DELNOTE
Smartform Driver Pgm: RLE_DELNOTE
u can modify above layout nd program according to ur needs -
T-code for Delivery output/Invoice List output????
what is the T-code to print the delivery output and Invoice list output,appreciate your immediate reply.
Thanks.
Mohammed.Hi Mohammed,
are you referring to the PO box in the sales order ? If yes, check with your driver program for the script output, there must be some condition which makes the shipping address print or not in the presence of PO box. You can know the script program by going to NACE t.code for the delivery output conditon LD00 in application V2 which is for shipping. Now coming to the availability of a change mode in your quality server, check with the basis team if you have authorization to go in the change mode or not.
Hope it helps. Please reward is useful.
Thanks & Regards
Sadhu Kishore -
User exits for delivery note vl02
i want to add some field in delivery note at item level susch as no of package per item for this which user exits i use
Hi,
to find the user exits & Badi's for the T-code..
go to table TSTC>enter T-code and execute> get the Program for the t-code..
and go to-se38-->get the package attached to the t-code..
next go to t-code Se15>expand the enhacement tab>enter package under userexit and
execute you will get the list of exits
available...
-->enter package under Badi's tab and
execute you will get the list of Badi's
available...
All the User exits are stored in Table MODSAP..
Prabhudas -
Providing subroutines for delivery note
how to tprovide subroutines for rvdelnote using smartforms.pla tell me its urgent.
Hi
This is a script and only in scripts we use the external Subroutines to get data from outside since in scripts we can't write the code
where as in Smartforms you can create your own PROGRAM LINES in the respective window and can write the code and fetch the data and can be used
so no need of writing subroutines in smartforms
DELIVERY NOTE
Output type : LD00
ScriptForm Name : RVDELNOTE
Driver Program Name : RVADDN01
smartform name <b>: LE_SHP_DELNOTE</b>
Smartform Driver Pgm: RLE_DELNOTE
Regards
Anji -
Document Generation Wizard - disregard picked Items for Delivery Notes
Hi,
We have a requirement from a customer whereby when they are creating Delivery Notes from Sales Orders via the Document Generation Wizard to exclude quantities of Items which have been picked on the Sales Order already.
E.g. Sales Order, Product XXXX for Qty 10.
Qty 5 has been Picked.
Document Generation Wizard is run with an option to create Delivery Note from Sales Order for qty 5 of XXXX
Thanks,
CarolineHere is the other solution:
1. Using the draft document generator, you can generate 1 time all the invoices like draft, then you can write a query to display this invoices , then you ca put this query in the alert management to generate the report with this invoices montly when you want.....then you create the invoices that you want, this option is semi-automatic and can work good if you don't have a lot of invoices...
2. using Data tranfer workbench, you can configure a excel template with all the invoices ready to migrate to SBO with the DTW, also you can make a alert in SBO in order to make this activity in a day montly....this is more automatic.
3.writing "Simply" SDK project to generate this invoices... using the oinvoice SBO object to create automaticaly all the invoices that you want....you can use the draft table information in order to generate this invoices using SDK.
The 3 solutions above are meant to resolve problem relate to auto invoice process, you can think about it.
Rgds, -
IDOC for transfer order for delivery note LT03
Hi All,
I need to generate an outbound IDOC upon transfer order creation in Tcode LT03.
I found there are two types of IDOC discussed in this forum before. One is the Canceling Transfer Order IDOC and another one is the Confirmation Transfer Order IDOC.
I'm not sure whether these relevant to what I need or not.
Can i know what FM, message type and basic type should I use for this situation?
(generate an outbound IDOC upon transfer order creation in Tcode LT03)
Please advice.
Thanks.
Best Regards,
JL
Message was edited by:
KAR SENG LAWI found something here,
Someone is using FM: L_IDOC_INPUT_WMTORD, message type WMTORD and basic type WMTOID01 in doing this when trying to send an Idoc to an external system when a transfer order for a delivery note is created (LT03). Is it OK ?
need advice.
Thanks again.
Maybe you are looking for
-
Mac mini + G5 + FW drive to play back DVDs
ok follow me on this one... I have a G5 Quad with a 1TB FW drive which contains my DVD collection If I get a Mac mini, can I: 1 - connect the Mac mini to playback my DVDs on my tv? 2 - can the Mac mini connect via Airport to the FW-HD to access my DV
-
Satellite Pro L - Mobile phone asks for driver
I am trying to connect my new Samsung Galaxy S Android mobile phone to my Toshiba Satellite, however the laptop will not recognise the phone and asks for a driver. Can anyone help?
-
Testing or postingmultiple messages in runtime workbench
Hi, I want to know if there is any shortcut to automatically post multiple messages say around 130 in runtime workbench at a time without clicking send message button for each message? let me know if any tools are available With Regards, Deepika.
-
Hello, Guys I have installed NAC 4.8 with agent 4.8.3.594 in the Mac OS Mountain Lion 10.8.2 and NAC Agent isn't working. We found these Cisco Website information: http://www.cisco.com/en/US/docs/security/nac/appliance/release_notes/48/483rn.html#wp1
-
IPhoto disappears from MacBook Pro
I posted this elsewhere, but i'll try here too. Today I found that my MacBook Pro suddenly did not have the iPhoto App anymore. It used to be there. I was able to DL it from Apple, but I wonder what happened? I think I might have deleted it, but I do