Smartform  plz help

Hi all....
I want to print 3 sets of invoices.
So whenever user gives print, it should print 3 sets by default.
Along with this for each invoice i want different headings e.g. 'Original for buyer', 'Duplicate for transporter',..etc
How i can do this ?.
Please suggest me.

Hi.
There is a numerous of ways to do this. I will just quickly try to name a few of them...
You could create 3 different output types for the different invoice outputs. They can all use the same print program / Smart Form. If you only want to change the header you could just program an if statement in the print program to check what output type is being used and add the different texts to a variable and print the variable in the header of the Smart Form.
If you only like to have one output type you can do some programming in the print program where the call to the Smart Form is. Before the call you can create a loop (3 times) and print different headers as suggested above.
These suggestions is of course based on the assumption that you already have a modified z-copy of the standard print program/smart form.
If you don't want to change anything in the print program I think you have to have 3 different output types which have the same print program but different Smart Forms...
I hope that my suggestions will lead you on the way to a solution.
BR
Niklas

Similar Messages

  • Plz help production issue(smartform)

    hi experts plz help its a production issue
    i have a box in my smartform in which in one line i can only show 50 characters .and i have a text of 70 characters but i only have to show 50 characters from 70 characters .
    now wat i did i stored 70 characters variable into 50 char variable abd displaying it .
    but the issue is
    if i want to print .
    hi this is sdn and here u can get all the information about sap .
    now lets say
    i of information is the 46th character of my line
    now what is happening it is coming like
    hi this is sdn and here u can get all the
    infor
    its showing 50 character only but if word is not completed it is printing it in next line.
    it should print like
    hi this is sdn and here u can get all the infor
    plz help how to do it
    thanx in advance .

    code i am using is ::::::::::::::::::::::::::::::::::::::::::::::::
    data : TEXT_3I56(50) type c .
    move is_bil_invoice-hd_gen-bil_number TO textname.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT                         = SY-MANDT
    id                            = '0002'
    language                      = is_nast-spras
    name                          = textname
    object                        = 'VBBK'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
    tables
    lines                         = t_lines_3156
    EXCEPTIONS
    ID                            = 1
    LANGUAGE                      = 2
    NAME                          = 3
    NOT_FOUND                     = 4
    OBJECT                        = 5
    REFERENCE_CHECK               = 6
    WRONG_ACCESS_TO_ARCHIVE       = 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.
    *describe table t_lines lines n.
    *if not n is initial.
    *bank_note = 'X'.
    *endif.
    READ TABLE T_LINES_3156 INDEX 1 .
    IF SY-SUBRC = 0 .
    TEXT_3I56 = T_LINES_3156-TDLINE .
    ENDIF.

  • PlZ help me these question

    Hi all,
    i attended a interview, these are the qes..plz help me with ans..
    1. is it possible without using function modules in
    bdc(open, insert,close) data transferring? how ...
    2. which one is better session/call transection? why?
    3. in LSMW what r the methods u r using?
    4. in LSMW otherthan recording any method is there? what are they?
    5. in LSMW where are u doing field validation? in which step, can u explain?
    6. is it possible to run smartform without using
    " ssf_function_module_name", how ?
    7. how will display secondary list in ALV.
    8. how will u call back to secondary lists to base list?
    9. how u r printing secondary list in interactive reports?
    10. what are the events used in u r ALV reports?
    11. how will u access data in secondary list?
    12. what is diff b/w bapi created fm and standered bapi fm?
    13. in ALE in which programm worked either standalone or any other?
    here what is standalone?i know change pointer..

    Hi
    10. what are the events used in u r ALV reports?
    Events in alv and their FM    The main events in alv and their FM and why we use these: 
    1. SLIS_PRINT_ALV. 
    2. SLIS_T_LISTHEADER. 
    3. SLIS_T_EVENT. 
    4. SLIS_T_SORTINFO_ALV. 
    5. SLIS_T_LAYOUT_ALV. 
    6. SLIS_T_FIELDCAT_ALV. 
    and in classic reports what is the sequence of events:   === Events are 
    At selection-screen output. 
    Initialization. 
    At selection-screen on field 
    At selection-screen on end of field 
    At selection-screen on Radiobutton Group R1. (If you have any radio buttons) 
    At selection-screen on block b1. (If you have any blocks) 
    Start-of-selection. 
    Get node. (if the data is retreived from a logical database) 
    Get node late. (if the data is retreived from a logical database) 
    Top-of-page. (if the write statement is in the end-of-selection event or we can say that before the first write statement) 
    end-of-selection. 
    and fuction modules are 
    LISTHEADER - Is used to print the header information in the ALV List. Name, Date, Time, ALV Name and other details are called as Header information.   EVENT - Basically this is the FM to handle Event's. When the user needs to do some event operation like when double clicking the a particular field we need to perform some operation.   These events are captured by this FM.   LAYOUT - This FM is used to define the layout of the List. There are many options available in this FM to define the Layout style.   FIELDCAT - These are used to populate the List header. We can change them according to our req. 
    User-defined Text Output Event
        Application
          print_end_of_list
        Define output text to be printed at the end of the entire list
          print_top_of_list
        Define output text to be printed at the beginning of the entire list
          print_end_of_page
        Define output text to be printed at the end of each page
          print_top_of_page
        Define output text to be printed at the beginning of each page
          subtotal_text
        Define self-defined subtotals texts
    Mouse-controlled Actions in the Grid Control Event
        Application
          button_click
        Query a click on a pushbutton in the ALV Grid Control
          double_click
        Query a double-click on a cell of the ALV Grid control 
          hotspot_click
        Query a hotspot click on columns defined for this purpose in advance
          onDrag
        Collect information when elements of the ALV Grid Control are dragged 
          onDrop
        Process information when elements of the ALV Grid Control are dropped 
          onDropComplete
        Perform final actions after successful Drag&Drop 
          onDropGetFlavor
        Distinguish between options for Drag&Drop behavior
    Processing of Self-defined and Standard Functions Event
        Application
          before_user_command
        Query self-defined and standard function codes
          user_command
        Query self-defined function codes
          after_user_command
        Query self-defined and standard function codes
    Definition of Self-defined Functions Event
        Application
          toolbar
        Change, delete or add GUI elements in the toolbar
          menu_button
        Define menus for menu buttons in the toolbar
          context_menu_request
        Change context menu
          onf1
        Define self-defined F1 help
    All of these can be found under type group SLIS.
    Events
    SLIS_EV_ITEM_DATA_EXPAND        TYPE SLIS_FORMNAME VALUE 'ITEM_DATA_EXPAND',
    SLIS_EV_REPREP_SEL_MODIFY       TYPE SLIS_FORMNAME VALUE 'REPREP_SEL_MODIFY', SLIS_EV_CALLER_EXIT_AT_START TYPE SLIS_FORMNAME VALUE 'CALLER_EXIT',
    SLIS_EV_USER_COMMAND              TYPE SLIS_FORMNAME VALUE 'USER_COMMAND',
    SLIS_EV_TOP_OF_PAGE                     TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE',
    SLIS_EV_DATA_CHANGED                TYPE SLIS_FORMNAME VALUE 'DATA_CHANGED',
    SLIS_EV_TOP_OF_COVERPAGE       TYPE SLIS_FORMNAME VALUE 'TOP_OF_COVERPAGE',
    SLIS_EV_END_OF_COVERPAGE       TYPE SLIS_FORMNAME VALUE 'END_OF_COVERPAGE',
    SLIS_EV_FOREIGN_TOP_OF_PAGE TYPE SLIS_FORMNAME
    VALUE 'FOREIGN_TOP_OF_PAGE', SLIS_EV_FOREIGN_END_OF_PAGE TYPE SLIS_FORMNAME
    VALUE 'FOREIGN_END_OF_PAGE',
    SLIS_EV_PF_STATUS_SET                  TYPE SLIS_FORMNAME VALUE 'PF_STATUS_SET',
    SLIS_EV_LIST_MODIFY                      TYPE SLIS_FORMNAME VALUE 'LIST_MODIFY',
    SLIS_EV_TOP_OF_LIST                       TYPE SLIS_FORMNAME VALUE 'TOP_OF_LIST',
    SLIS_EV_END_OF_PAGE                    TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE',
    SLIS_EV_END_OF_LIST                      TYPE SLIS_FORMNAME VALUE 'END_OF_LIST',
    SLIS_EV_AFTER_LINE_OUTPUT       TYPE SLIS_FORMNAME VALUE 'AFTER_LINE_OUTPUT', SLIS_EV_BEFORE_LINE_OUTPUT     TYPE SLIS_FORMNAME VALUE 'BEFORE_LINE_OUTPUT',
    SLIS_EV_SUBTOTAL_TEXT                TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT'

  • Hi, plz help me how to assign my PO to output types

    plz help me how to assign my PO to output types through Nace t-code.what form routine?

    Murli,
    the settings in MN05 for PO.
    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
    You should know the Application of a document first Like:
    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
    so first select the Application type (ex: EF) for PO and press OUtput types
    then a list will come in that you should know the related output type for PO.
    select any outtype and click on the processing Routines button on the left side
    it will display the Medium, Driver Program and the Script form or smartform related to that document..
    Reward points if it is helpful..
    Amit.

  • Error while opening a module. plz help me, very urgent.

    when i try to open a module, the following error message appears on my screen.
              " no j2ee component found in d:\krisp\programs\servlets".
              i've installed bea in c: drive and my servlet program is in d: drive.
              plz help me, it's very urgent.

    Can you provide some more information? What were you doing when this happened?
              Can you post the entire error message?
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

  • Hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder go it says this file doesn't exist. can some1 plz help?

    hi when i open my application folder, all the application is shown in trash folder. when i click the application it says this app is in trash first move it out. and when i try to open through finder> go it says this file doesn't exist. can some1 plz help? how can i put all my application through application folder?

    Something really odd is going on. In your first screen shot, I noticed that the Applications folder does not have the proper icon displayed in the side bar. Also, in the title bar it lists it as Applications 08-59-29-909.
    Not sure where it's picking up that odd name, unless it's because it's still truly within the Trash folder.
    Try this. In the Finder > Preferences > General > turn on "Always open folders in a new window". (I have a feeling you have the default setting with this off).
    Now, in Finder > Go > move down and open the Applications Folder from there. Now open the folder where you see all your applications that you show in your screen shot, select all, and move them to this true appliactions folder.
    This is what you should properly seeing (but with different apps listed):
    See how the Applications folder has the icon of the letter A shaped with a pencil, ruler & pen.

  • How to select the download location? its automatically downloading to users folder in c drive. i wanna change it..plz help me out......

    how to select the download location? its automatically downloading to users folder in c drive.. i wanna change to my desktop...plz help me out...

    Tools -> Options -> Save files to -> Click browse button and browse for folder where you want to save the file.

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

  • My ipod touch 5th generation wont download apps and let m e use them!!! Plz Help me fast!

    I have an i pod touch 5 and I try to download a new app from the app store so i goto the app store and click download then click it again to install it and it installs but it dont leave an app icon on the home page so i go back to the app store and it says open in a ble box so i click open and it dont open it just keeps saying open and it wont open! please help me!!!!!!!!!!!

    I ment blue not ble sorry but plz help!

  • Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    Help my iPod won't let me download apps... I'll put my password in then it takes me to the app but then is just goes away then I do it again an it won't load or it will just go away again plz help I want to get apps

    You said you updated yur 1G iPod to 4.2.1. A 1G can only go to 3.1.3 and thus you must have jailbroken it to get to 4.2.1 and that can cause problems.
    ArealDJ wrote:
    I have the same problem.. apps won't download and won't open. I have a 1st Gen ipod touch and recently upgraded my MacBook Pro (2012) and as soon as I upgraded the iPod Touch to 4.2.1, this happened. I restored to factory defaults and still cannot dl and open apps. Any way to diagnose this problem? Apple tech charges $29.99 for out of warranty products and if I am reluctant to pay with them telling me its simply a hardware problem.

  • I restored my Macbook Pro and now I can't log in as Admin - it says there is an error with FileVault and I don't have access - plz help!  thank you.

    I had to restore my Macbook Pro from Time Capsule yesterday and now when I go to log in as my usual Admin, it says there is a FileVault error and my access is denied.  I created another temporary Admin acct, but everything I had on my desktop, etc is "gone"  I can look up the "drive' or wahtever it's called, but I can't access any of it.  All I want to do is log back in as my usual self (the regular Admin) - plz help!  Thanks.   p.s. I"m (obviously) not that computer savvy!

    Triple-click the line below to select it:
    /System/Library/CoreServices/Directory Utility.app
    Rght-click or control-click the highlighted text and select
    Services ▹ Open
    from the contextual menu.* The application Directory Utility will open.
    In the Directory Utility window, click the lock icon and authenticate. Select the Directory Editor tool in the toolbar. Select Users from the Viewing menu in the toolbar, if not already selected. Select the affected user account in the list. On the right is a list of properties and values. Select the property "HomeDirectory" and delete it by clicking the minus-sign icon directly below the property list. There are two such icons in the window. You want the one on the right, not the one on the left.
    CAUTION: Do not click the minus-sign icon on the left, below the user list.
    Then click the Save button in the lower right corner of the window. Quit Directory Utility.
    CAUTION: There is no "undo" in Directory Utility. If you make a mistake and delete something in the Directory Editor that should not have been deleted, restore your whole system from a backup and start over. I have no other help to offer in that case.
    Try again to log in as the affected user. If you can log in, you should find a file in the home folder with the name of the user and the filename extension "sparseimage" or "sparsebundle". Double-click that file. A disk image should open. Copy your files from that disk image to restore them.
    I strongly suggest that you deactivate legacy FileVault in the Security & Privacy preference pane, then log out and log back in. Consider activating FileVault 2 if you want that kind of security.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard (command-C). Open a TextEdit window and paste into it (command-V). Select the line you just pasted and continue as above.

  • Error in variables,plz help me

    I created a variable del_var.The sql query assosiated with this variable is.
    Delete from schema.file_name_table where rownum=1;
    After refreshing it.it is deleting first row in the table.But it is resulting in an error
    "17003 : null : java.sql.SQLException: Invalid column index java.sql.SQLException: Invalid column index "
    Plz help me

    Hi,
    You can't use a 'Delete" command at a refreshing variable because at a refresch the variable need to receive a value back and the delete doesn't return value.
    Change the command to "select....."
    Does it make sense to you?

  • Not able to access webservice after migrating from 8.1 to 10.3,plz help

    Hi All,
    Prev our application was running in weblogic 8.1 and now we moved to 10.3
    We are able to deploy our webservice in 10.3 and access the wsdl but we are not able to access the webservice from the client.
    Even the testclient is not comming up.
    After spending long time in that,now i dont have any clue on this issue.
    Plz help on this
    Thanks ni advance,
    Mouli

    Sunil,
    We are not seeing any exception.We regenerated the webservice and then deployed in the 10.3
    When we make req from the client ,we are getting null response but thing is there are no log trace in the server side for that
    folllowing is the input string we are pasing to the method notifyservice
    IN the client we pass the wsdl url and then pass the following input string and hit the notifySerivce method
    Req:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?><object><GLCCode>102431</GLCCode><callBackNumber>888256798</callBackNumber></object>
    Res:
    <m:notifyService xmlns:m="http://www.testportal.com/outbound/tsp/WowWebservices">
    <result xsi:nil="true"/>
    </m:notifyservice>
    Therre was an exception in the client side,plz check below
    javax.xml.rpc.soap.SOAPFaultException: Failed to get operation name from incoming request
    at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:317)
    at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:147)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:473)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:459)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:569)
    at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:422)
    Thanks For your time,
    Mouli

  • HT2534 My Apple ID is not working.....plz help

    My Apple ID is not working I made it yesterday using my PC .......plz help.......

    Try sign in to iTunes and App Store
    Settings>iTunes and App Store>Apple ID

  • Had 1418 error.formatted as fat.not fat32.now ipod doesnt work.why?plz help

    The iTunes keeps saying that:
    "The iPod "IPOD" cannot be updated. The disk could not be read or written to"
    "The iPod "IPOD" cannot be updated.
    And when I tried to restore it.
    "The iPod "IPOD" could not be restored. An unknown error occurred (1418)"
    thats a dreaded problem and i researched at many forums on how to solve it.....
    before reading ur reply....there were some other replies that i read.....
    which told me to format my ipod into fat partition...and not fat32 partition....then we had to update it and then restoring it would be possible........
    that was the only article which i came across and which had a solution to 1418 problem......
    so i began my work....
    but as soon as i formatted my ipod shuffle second generation into fat partition.......
    i restarted my comp...and then.the ipod is no longer working.......
    if i push it to on......then there is a constant green light on it which does not go off even if i connect it to comp. using the dock provided.......
    if i put it off,the green light goes off....
    ideally when an ipod shuffle is connected to pc..there is an orange light that starts blinking ,that shows that the ipod is being charged.
    but now when i connect mine.....
    the green light blinks only once......and then nothing happens...
    the device isnt working and so i cant even solve my 1418 problem ,as now i even have the solution.......
    help me plz....
    its really urgent....
    its been just a month my uncle gifted me this ipod ...he stays in north carolina........and i stay in india.....
    i dont even know if there are service centres of apple available in mumbai.and if they are,whether they are trust worthy or the ipod that i send to them might never to me and get stolen or something.....somebody might just keep it and say that its lost.......mumbai is not trustworthy.
    but if there is a recognized apple service centre then i would want to go there and get my ipod repaired....i have one-year warranty with me.......but i dont know if the warranty of a product bought in north carolina works in india......
    i cant throw this ipod....cause its my first ipod and it has hardly been time that i got it...its too early for me to throw it.....
    i dont know why the ****.....cant i connect it to the comp...
    i tried the following: after getting 1418 read and write error...:
    reinstalled the itunes 7.0.2
    reinstalled the drivers......
    reset the ipod shuffle...
    restarted my computer several times.....
    checked the cable....
    plugged the usb cable onto another port...
    scanned the comp for viruses......
    now the only thing left is that i think.....there can be a problem with the jack where the dock is plugged.....
    maybe thats the reason my ipod isnt working...
    even if i formatted into fat partition rather than fat32 partition,it should atleast be connected......
    should atleast charge.....
    should atleast be detected......
    my ipod is not even getting detected by the comp as any unknown device also.....forget as an ipod....
    i just shouldnt have formatted it...
    although i think....that formatting it did not lead to this problem......
    please help me.......
    urgently...........
    plz.....
    plz......send ur reply fast..plz help me.........
    get this ipod to work......
    i will fix the 1418 error myself....
    just get this device to work....so that comp starts detecting that i have connected something thru usb.....

    On top of the two suggestions already given, make sure that the drive letter being assigned to the ipod when you plug it in in windows is not also a drive letter being assigned to another drive. I've heard that this happens occasionally and can cause all kinds of conflicts, from problems you are describing to lockups when trying to sync.
    I would also try it on a different computer to see if that helps. Maybe you've got a friend or a computer at work that you can install itunes on and give it a shot there. This will let you know whether it's a problem with your specific computer or if it's a problem with the ipod.
    The fact that it runs in Windows and you were able to reformat the flash memory stick tells me that the Ipod is working, but that something on your computer is not.
    P.S. Obviously you've had it for 90 days, So I must assume that the USB port is working correctly. Otherwise the Ipod's battery would have drained by now. So I don't believe it is a hardware issue. So move past that for right now and look to your computer's settings for the answer.

Maybe you are looking for

  • Runcluvfy.sh stage -pre crsinst: error Unable to reach any of the nodes

    Hii all, Well, I've gone through the pre-reqs for trying to install 11G clusterware on RHEL 5.3. I'm to the point where i'm trying to run: ./runcluvfy.sh stage -pre crsinst -n node1 -verbose I get this: Performing pre-checks for cluster services setu

  • Adobe Illustrator CC 2014 Closes on Startup

    So my problem is quite simple, I do motion design, and to import logos into Cinema 4D i need to make them into paths within Illustrator, but whenever i open up Illustrator, it closes straight away without any crash reports, nothing, just closes witho

  • How can I move photos to my camera roll, or from an album to my pc?

    I can sync my camera roll, but I have 500+ pics in other albums - is there a way to copy them to my pc?

  • Inter and Intra Company Stock Transport Orders

    Hi All, has anyone set up the following scenarios? 1. Intra Company Stock Transport Orders between 2 plants in the same company code and same Sales Org i.e Plant 0001 (Supplying Plant) exists for Company Code 0001 and Sales Org 0001 Plant 0002 (Recei

  • Any chance to repair hundreds of aliases in iPhoto

    In my iPhoto preferences the [ ] Copy Photos to iPhoto checkbox was unchecked. Anything worked fine (events, albums, slideshows) with hundreds of images - util my HD has been replaced. but now: every time I try to view an image in iPhoto it informs m