New sapscript for VT02N

Hi,
the print program i´using is Z_RVADRT01 (copy of RVADTR01)
and the sapscript form is Z_SD_SHIPMENT (copy of SD_SHIPMENT).
In the Z print program i use the following code to get the simulated
price:
CALL FUNCTION 'SD_SCD_COST_INFO_SHIPMENT'
  EXPORTING
    i_shipment_data = l_shipment_data
   i_opt_dialog    = false
    I_OPT_BATCH_MODE = 'X'
    i_opt_sim       = 3
  IMPORTING
    E_RESULT        = l_result
    E_RESULT_WAERS  = l_result_waers
    E_ERRORS_OCCURED = l_errors_occurred.
Note here that we´re in batch mode(I_OPT_BATCH_MODE = 'X')
In IMG i believe i´ve assigned correctly the message class
to the print program, routine and sapscript form.
When i display a message already created there´s no problem ...
but when i use transaction VT02N and generate a new message by
saving, the flow of the program does not pass through
Z print program thus losing the data i´m interested in.
Why is this happening?
Best regards.

Hi Clemens,
thanks for the tip.
<u>The problem lies in here</u>:
<b>PERFORM SCD_COST_INFO_INTERFACE_FILL in program SAPMV56A
USING vttkvb-tknum
CHANGING l_shipment_data</b>.
CALL FUNCTION 'SD_SCD_COST_INFO_SHIPMENT'
  EXPORTING
    i_shipment_data = l_shipment_data
   i_opt_dialog    = false
    I_OPT_BATCH_MODE = 'X'
    i_opt_sim       = 3
  IMPORTING
    E_RESULT        = l_result
    E_RESULT_WAERS  = l_result_waers
    E_ERRORS_OCCURED = l_errors_occurred.
The flow of the program passes through the Z print program but the sentence
<b>PERFORM SCD_COST_INFO_INTERFACE_FILL ....</b>
<u>does not populate "l_shipment_data".</u>
Why does it work for display sapscript from screen but not when i save a new message?
Best regards.

Similar Messages

  • Copying sapscript for printing in different language

    Hi,
    I need to create a sapscript which needs to be printed in 2 langauges and assigned to 2 different output types(one for english language and other for Chinese).
    I have already created teh sapscript for the english language and not sure how to create the other one for chinese language.
    The language for printing will be determined from vendor master.
    Do I need to copy the sapscript(English version) and while copying just maintain it in English language or Chinese language?
    Please advise.

    Hi ,
    As David says,
    you can create your chinese language layout and use Menu path
    Form-> Copy From... and copy your english language  lanyout to your chinese langyage layout.
    after that you can use SE63 for translation your english Script to chinese language Script or directly you can change heading text  and other text in inside your layout.
    but make sure  if your paragraph format is not support chinese language then you can create new paragraph format for chinese language Script.
    Regards,
    Prasenjit

  • User Exit for VT02N/VT03N after printing shipment

    Please, I need an EXIT after printing Shipment on VT02N/VT03N.
    The propose is check if exists an entry in NAST table of an output type and call automatically the screen of Issue output.
    Sample: After printing a shipment with output type "ZCS1" the program has to check if an entry output type "ZCS2" also exists in NAST table for the same shipment, and, in this case, shows to user,  the screen of issue output filled with output type "ZCS2".
    Thanks in advance!

    Hi,
    Below are some of the user exits for VT02N.
    Have a look.
    MV56AINI  Initialization of transaction control for transportation
    V56AFCCH  Shipment processing: Check function code allowed
    V56AGTAR  User Exit for Filtering Shipping Unit Calculation
    V56ARCHV  Customer-spec. checks for archiving shipments
    V56ATKTX  Change the number of lines for text input in shipment
    V56BMOD   Transportation processing: Field modification
    V56DISTZ  Shipment Processing: Determine Distance
    V56FCOPY  Shipment processing: Copy delivery data
    V56FSTAT  Shipment processing: Activities when setting a status
    V56L0001  Status of Shipments for a Delivery
    V56LDELI
    V56LOCID  Shipment Processing: Determine Location Identification
    V56MVT04  Extensions for Collective Processing of Shipments
    V56SLDET  Shipment processing: Leg determination
    V56TDLIF  Filter Delivery Items for Shipment
    V56UCHCH  Shipment processing: Check whether changes were made
    V56UCHCO  Check shipments are complete
    V56UDLUP  Obsolete as of 4.6C: Delivery Update on Delivery Routines
    V56UNUMB  Shipment number allocation
    V56USTAT  User-individual definition of transportation planning status
    V56USVDO  Update new objects for transport
    V56USVDP  Preparation for updating new objects for transport?
    Hope this will help u..
    Regards,
    Gautham Paspala

  • Invoice Smartforms or Sapscript for Argentina

    Gurus,
    Does anyone knows if SAP provided an Invoice smartform or sascript specific for Argentina?
    Thanks,
    Apollo

    hELLO,
    You can take a copy of MEDRUCK sapscript and customize it to your needs.
    I´d recommend to create a new sapScript instead.
    Bye
    Gabriel P

  • New Smartform for Sales Order

    Dear Gurus,
    We need to Print Sales Order & we are creating new Smartform for the same.
    The standard Output type for Sales Order is BA00, but we have created new output & assigneed the same in Output determination.
    Now to the best of my knowledge, the Output type (e.g. BA00) calls a particular standard SAP Program (e.g. RVADOR01) & subsequently that Program transfer Sales Order number & othre data to the SAPScript which Prints the out in required format.
    Now that we are creating a new Smartform our ABAPers are facing a problem on how to import the Sales Order Number in Z-report.
    Can anyone please help...
    Thanks,
    Jignesh mehta

    RVADOR01 is for SAPscripts only, there is a different program for Smartforms. Unfortunately, we don't have it right now and I can't remember the name, but you can find it through the SAP Marketplace or on SDN.
    Even if you have created a custom Smartform, you can still use the standard processing program, as long as the interface is the same. But if you have to develop a custom output program, it probably makes sense to make an exact copy of the standard one and then only to change what's necessary. For example, take a look at the Smartform program for billing output RLB_INVOICE, it wouldn't be much different for the orders. In NAST table you'll get the document number and partner data and you can go from there.
    Hope this helps.

  • User Exit for VT02N

    Hi,
    I'm changing the shipments during transportation planning using VT02N and on saving the changes , I need to update certain fields in the delivery tables LIKP and VTTK. Can anyone suggest which user-exit will be used to make these updates.
    Thanks in advance,

    Hi,
        Check the user exits
    EXIT_SAPLV56U_004 - Shipment Processing: Prepare New Objects for Saving
    EXIT_SAPLV56U_005 - Updating of Additional Objects Within Shipment Processing.
    <b>Reward points</b>
    Regards

  • I am trying to move my wife's iPhoto '08 library to my new iMac for iPhoto '11.

    I am trying to move my wife's iPhoto (2007) library on a Macbook to my new iMac for iPhoto '11.  First, when I opened iPhoto on the iMac it asked me to create a library, which I did.  Then I imported her photos via a wireless network to my "new" library.  However, when it finally finished importing, it had imported 3 copies of each photo from her library.  I deleted the "new" library and started over.
    Second, I opened iPhoto on the iMac and chose to use "other library."  I chose my wife's shared iPhoto library and it began transferring the photos to the new iMac (or so I thought).  This worked beautifully as it only brought over single photos and not 3 copies like discussed above.  After editing the new library and adding some photos from an old PC, I shut down iPhoto.  A few hours later I tried to open iPhoto on the iMac and it gave me the opening screen again with choices to create a new library or use a different library.  As it turns out, my wife's Macbook and been disconneted from our wireless network.  I was able to figure out that that unless my wife's Macbook is connected to the network then I cannot access the iPhoto library on my iMac.  I was under the impression that I had copied her library to my computer and that the photo files were now on the hard drive of the iMac.  So when her computer is offline I can no longer access the imported library.  I want her library to stay on the iMac as we plan to sell her Macbook.  As you now know, we cannot access her iPhoto library on the Macbook since she is running an older version of iPhoto.
    So, what I would like to do is to completely transfer the photos from her Macbook to my new iMac and be able to access them on the iMac regardless of whether she is on the network or not because we plan to sell her Macbook to a friend.  Thank you for any help you can provide.

    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then hold down the option (or alt) key key and launch iPhoto. From the resulting menu select 'Choose Library'
    and select the Library that you moved.  That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.
    Your first option didn't work because you imported one Library to another. Every version and thumbnail is imported like a distinct photo, you lose all your Albums, Keywords etc., the link between Original and Previews is destroyed, the non-destructive editing feature is ruined and so on. In summary: it's mess.
    Your second option didn't work because you simply referenced her library on the old machine.
    Regards
    TD

  • Print from ipad if i connect a usb connector to my ipad can i connect my printer to it and print??as im thinking of buying the new ipad for work but i must be able toprint

    hi can any one help i want to get the new ipad for work but i need to print.i see i can buy a usb connector can i print if i plug my printer into the usb.

    If you have a USB printer connected to your computer, Mac or PC, you can activate or install AirPrint and print from your iPad over wifi without any special apps.
    Activate AirPrint in Mac OS X;
    http://netputing.com/airprintactivator/
    Add AirPrint to Windows;
    http://jaxov.com/2010/11/how-to-enable-airprint-service-on-windows/

  • How do I use family share to setup a new device for my child when I don't already have one with iOS 8?

    My kids want apple products.
    I don't own any.
    I buy an iPad for one and an iPhone for the other, but I can't set them up because they require me to setup Family Share and create accounts.  I can't do that because I don't have a device with iOS 8 already setup.
    I do have a valid AppleID.  I've had it for years.  I use it with iTunes.
    I wish they would just let me manage the account setup and Family Share through a web page.  Right now I'm dead in the water and Christmas is approaching fast.

    I have found a solution.
    It turns out that all the documentation I could find on the web was wrong.  At least in the case of the iPad I just bought. I did manage to borrow a device so that I could setup family share and the kids accounts, but when I went to enter the new existing account into the setup of the iPad, it then started leading me through the process to create the account (clearly it didn't bother to check if it really existed already).  In reality, I believe had I just entered a "new ID" for my child, that didn't exist, it would have led me through the same process.  As it was, I had to back out to the first screen and skip the creation process, since I had already created the IDs elsewhere.
    The only part I'm not clear on, is if I still would first have needed to turn on family sharing for my ID before starting this whole process, or whether it would automate that while creating the child AppleID.

  • How can i obtain a new password for my airport if i forgot the original

    trying to help my friend out..save her a trip to Apple store
    she needs a new password for her airport it keeps requesting one from her...and she forgets her original
    how can we set up a new one for her
    thanks in advance

    Go to Settings > Phone > Change Voicemail Password

  • I used to have an application in my iPhone 4 and 4s that captures business card and creates its content to my contacts. Its no longer working with my i5. Can you recommend me a new apps for this same function

    I used to have an application in my iPhone 4 and 4s that captures business card and creates its content to my contacts. Its no longer working with my i5. Can you recommend me a new apps for this same function

    Try CardMunch it works well for me

  • In firefox 3, when I middle clicked a link, it would open in a new tab for me to view later, but it wouldn't go directly to the tab; in firefox 4, it does. How do I get it to work like before?

    E.g. if I was on google and middle clicked a search result, I would still be looking at google, but the page I opened would be loaded to the right side.

    Google search and other websites have a user preference that can be set to open a search result in a new tab or a new window, for users who are logged in to their website.
    Otherwise, when you don't have a 3-button mouse or a scroll pad with "middle-click" functionality, you can use '''{Ctrl + Click}''' to open a hyperlink in a new Tab.

  • FillBy always fills in the same row in data grid view. How to make it fill in a new row for each click of the Fillby Button? VB 2010 EXPRESS?

    Hi there, 
    I am a beginner in Visual Basic Express 2010. I have a Point of Sale program that uses DataGridView to display records from an external microsoft access
    database using the fillby query. 
    It works, but it repopulates the same row each time, but i want to be able to display multiple records at the same time, a new row should be filled for
    each click of the fillby button. 
    also I want to be able to delete any records if the customer suddenly decides to not buy an item after it has already been entered. 
    so actually 2 questions here: 
    1. how to populate a new row for each click of the fillby button 
    2. how to delete records from data grid view after an item has been entered 
    Thanks 
    Vishwas

    Hello,
    The FillBy method loads data according to what the results are from the SELECT statement, so if there is one row then you get one row in the DataGridView, have two rows then two rows show up.
    Some examples
    Form load populates our dataset with all data as it was defined with a plain SELECT statement. Button1 loads via a query I created after the fact to filter on a column, the next button adds a new row to the existing data. When adding a new row it is appended
    to the current data displayed and the primary key is a negative value but the new key is shown after pressing the save button on the BindingNavigator or there are other ways to get the new key by manually adding the row to the backend table bypassing the Adapter.
    The following article with code shows this but does not address adapters.
    Conceptually speaking the code in the second code block shows how to get the new key
    Public Class Form1
    Private Sub StudentsBindingNavigatorSaveItem_Click(
    sender As Object, e As EventArgs) Handles StudentsBindingNavigatorSaveItem.Click
    Me.Validate()
    Me.StudentsBindingSource.EndEdit()
    Me.TableAdapterManager.UpdateAll(Me.MyDataSet)
    End Sub
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
    'TODO: This line of code loads data into the 'MyDataSet.Students' table. You can move, or remove it, as needed.
    Me.StudentsTableAdapter.Fill(Me.MyDataSet.Students)
    End Sub
    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Me.StudentsTableAdapter.FillBy(Me.MyDataSet.Students, ComboBox1.Text)
    End Sub
    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
    Me.MyDataSet.Students.AddStudentsRow("Jane", "Adams", "Female")
    End Sub
    End Class
    Get new key taken from
    this article.
    Public Function AddNewRow(ByVal sender As Customer, ByRef Identfier As Integer) As Boolean
    Dim Success As Boolean = True
    Try
    Using cn As New OleDb.OleDbConnection With {.ConnectionString = Builder.ConnectionString}
    Using cmd As New OleDb.OleDbCommand With {.Connection = cn}
    cmd.CommandText = InsertStatement
    cmd.Parameters.AddWithValue("@CompanyName", sender.CompanyName)
    cmd.Parameters.AddWithValue("@ContactName", sender.ContactName)
    cmd.Parameters.AddWithValue("@ContactTitle", sender.ContactTitle)
    cn.Open()
    cmd.ExecuteNonQuery()
    cmd.CommandText = "Select @@Identity"
    Identfier = CInt(cmd.ExecuteScalar)
    End Using
    End Using
    Catch ex As Exception
    Success = False
    End Try
    Return Success
    End Function
    In closing I have not given you a solution but hopefully given you some stuff/logic to assist with this issue, if not perhaps I missed what you want conceptually speaking.
    Additional resources
    http://msdn.microsoft.com/en-us/library/fxsa23t6.aspx
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • Adobe Creative Cloud and Adobe Creative Suite: New Choices for Customers

    Adobe has announced the new Cloud-based model for software distribution, along with new terms for boxed product upgrade eligibility. Beginning with the CS6 releases, when they happen, upgrade pricing on boxed products will only be availble one generation back. There is a limited window to upgrade now to the current versions at a discount.
    See http://blogs.adobe.com/conversations/2011/11/adobe-creative-cloud-and-adobe-creative-suite -new-choices-for-customers.html

    Eugene:
      Based on the current information we have (from the blog post), which may not be correct and which you should not rely upon:
    There is some confusion about the word "discount." As used in the blog post, in general there are no "discounts" for upgrades, there is the upgrade price and there is full price. But, also in the blog post, there is a special "discount upgrade" if you choose to upgrade to CS5.5 today (prior to Dec. 31, 2011), which is 20% off the regular upgrade. However, Peter used the word "discount" to distinguish between upgrade pricing and full price. It's probably a good idea to avoid using that word there because of the potential for confusion.
    I have CS5 InDesign in work. So I will be able to upgrade that to CS6 when it comes out at the discount price?
    You will be able to upgrade to CS6 at upgrade pricing. Not the 20% discount, but it is "discounted" from the full price of CS6.
    I'm still using CS2 Illustrator and Photoshop, for the little work I do in those programs, they're fine. But if I want to upgrade them to CS6 I have to pay the full amount of an upgrade, with no discount... or will I have to pay for CS6 in full for both of these programs?
    You will have to pay the full price (not the "full amount of an upgrade," whatever that means).
    If you elect to upgrade to CS5.5 prior to Dec. 31 of this year, however, then then you can pay the discounted upgrade price to upgrade to CS5.5 (well, CS5 since Photoshop CS5.5 doesn't exist), and then you can pay the CS6 upgrade price in March/April. So you can pay for no upgrades (full price) or two upgrades (one of which is 20% off).
    At the moment I can upgrade CS2, photoshop and Illustrator for €240 each, to CS5. So wouldn't I just be able to do that now and then buy the CS6 upgrade at a much later date perhaps just before CS7 comes out?
    Yes, you can do that.
    If CS6 has the tools to basically go "File>Export>Epub" and I get a fully working epub file without having to trash about in code afterwards or make complex tagging in InDesign, then I'll be buying it.
    It looks like EPUB is evolving pretty fast, so even if ID CS6 fully supports what you want out of EPUB on Day 1, I bet you'll need to be prepared to postprocess it on Day 2. Or at least long before Day 200.

  • Need Help to create new screen for RF Sapconsole

    Hi Guru's
    I'm new on RF (but some years in ABAP) since last week.
    I need help to create new screens for RF (SAPLLMOB).
    Can someone explain me the procedure to create screen (with ABAP code after) or perhaps someone have an exemple (simple or not) ?
    I have to develop 2 new screens with really few time.
    And, another subsidiary question :
    how SAP can transfert information between the flash gun and the screen i have developped.
    Is there some code to add to enable this functionality or it is include in SAPLLMOB on standard fields ????
    It's a new strange world for me today...
    Many thanks to everyone who can explain me
    Alain

    hi,
    I am facing this problem as well. Is there any reference to create the new screen?
    Hope someone can help! Thanks!
    Regards,
    Darren

Maybe you are looking for

  • How do I Share ical between users on the same computer

    I share my computer with my wife and we each have our seperate logings. We'd like to be able to share our diary on the computer so we can keep track of each other. Is this possible? I use Tiger and ical 2.0.3 Peter

  • How to create a retro 3d text effect in indesign Cs6?

    Hello, i need to know how to make this retrolift 3d text effext in indesign.

  • Trial Version Of After Effects Installation Problem

    I got some problems regarding the Installation of After Effects  Trial, yes, I am on a 64bit Machine, it's Windows Vista and I just  reformatted it, that's the error output: Exit Code: 6 -------------------------------------- Summary ----------------

  • SCCM 2012 SP1 - Multiple SUP - common WSUS DB

    Hello, Is it supported / recommend to share a common WSUS DB for multiple WSUS / SUP roles ? If yes, how to perform a clean deployment of additional SUP dealing with additional KB requirements.Following article explains the problem but the solution l

  • Toplink logging to log4j

    Hi! I'm developing a standard J2SE application based on Toplink JPA library (netbeans). I'm using apache log4j library to do logging. Can someone please help me to make toplink log by using log4j logger, instead the default one. I've been trying diff