Handle SF for multiple customers in select options

Hi All,
    I have a Customer Statement where I need to Print for multiple customer's invoice details.. The logic i have used here is i am passing the Customer data to the SmartForm(SF) and extracting the invoice details of that customer and then populating the SF for the layout.. the thing is i have to do the same thing here for multiple Customers.. i have to add the generated SF of other customers to the same spool.. please help me out with thsi scenario.
Thanks in Advance
Kan

Hi ,
create a internal table containg list of custome and all its details in the driver
program . Pass the internal table to the smaft form . Then in the smartform create the loop for the internal table . At the ned of loop create the command statement to break the page after details related to customer 1 is displayed and for mext customer it will be displayed in next page .
Regards

Similar Messages

  • Printing smartform for multiple customers

    Hi Experts,
    can anybody send me the code for printing the smartform for multiple customers, i need print the customer data by pagewise means in selection screes if user enter multiple customers ,i need to print by each customer, if customer 1 is different from customer 2 need to start in new page .
    pls guide........
    thanks in advance.

    Hi,
    You can handle it in your form by checking the customer.
    Write code in your main window there you check the present customer with previous one. if not equal then trigger the next page
    Regards
    SHiva

  • Multiple records in select options-Urgent help

    Hi all,
       Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
         S_SETID   FOR  SETHEADER-SETNAME NO INTERVALS.
      The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.

    Hi,
    Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
    Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
    If you want more length field then search based on RANGE_* then you will get all the Range Structure.
    Regards
    Sudheer

  • Multiple records with select option

    i have to use select option in selection screen, which wl take the multiple values but that select option wont act as a range, the select option is a session name  from sm35, the table from where data is retrieved is APQI, i have used  a parameter before using select option ,like:
    selection-screen begin of line.
    parameters: P_grpid like apqi-groupid.
    select-options: s_grpid like apqi-groupid.
    selection-screen end of line.
    AT-SELECTION SCREEN ON VALUE REQUEST FOR p-GRPID. " previous situation
    {the code starts
    FM F4 selection is called}
    AT-SELECTION SCREEN ON VALUE REQUEST FOR S_GRPID-low. " CURRENT situation
    FM F4 selection is called}
    now when i give data in slection screen for s_grpid-low then it works as a parametr, but it doesnt take multiple values at s_grpid when i have alos mentioned the same for s_grpid-high.
    Please tell me how to achive multiple records with select option, or u can also send a sample code if you have..
    Thanks
    Swarnali

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • Single Receipt for multiple Customers

    We have a scenatio where there a multiple customer codes for different locations of the same customer. Say customer codes A B and C. A single receipt is received from the central processing location i.e. A and it contains invoices raised on all locations A B and C
    Entry cannot be passed through F-28 to enter and clear the open invoices.
    Is there a solution to this situation
    regards

    Hi,
    Through F-28 you can do multiple customer receipts with single receipt.  In the first screen of F-28, you have to give total amount received in the amount column then give first customer code then go to process open items select the open item, then choose process open items again it will ask for new customer code then give second customer code and process open items select open items in second customer this way you can process single receipt for multiple customers.
    Regards
    Sarma BH

  • Can we use the same credit card for multiple customers???

    One of my clients has a requirement where they need to use the same Credit Card number for multiple customers. I have looked into the possibility of using the 'Alternate Payer' functionality but besides that is there any other way SAP can be tweaked to accept the same credit card on multiple customer accounts?
    Thanks in advance for any help or guidance you may provide.
    SJ

    I know SAP throws an error message which is why I was looking for a solution. I do have a work around. By pointing to an 'Alternate Payer' on the Payment Transactions tab on the customer master you can have a credit card on this alternate payer master record and use this payer on several other customers. All these customers will not have any credit card stored on their master records.
    Thanks for your response though.

  • Can we handle exceptions for the expressions in select query?

    Hi all,
    Can we handle exceptions for the expressions in select query.
    I created a view, there I am extracting a substring from a character data and expected that as a number.
    For example consider the following query.
    SQL> select to_number( substr('r01',2,2) ) from dual;
    TO_NUMBER(SUBSTR('R01',2,2))
    1
    Here we got the value as "1".
    Consider the following query.
    SQL> select to_number( substr('rr1',2,2) ) from dual;
    select to_number( substr('rr1',2,2) ) from dual
    ORA-01722: invalid number
    For this I got error. Because the substr returns "r1" which is expected to be as number. So it returns "Invalid number".
    So, without using procedures or functions can we handle these type of exceptions?
    I am using Oracle 10 G.
    Thanks in advance.
    Thank you,
    Regards,
    Gowtham Sen.

    SQL> select decode(ltrim(rtrim(translate(substr('r21', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('r21', 2, 2)), null) from dual;
    DE
    21
    SQL> ed a
    SQL> select decode(ltrim(rtrim(translate(substr('rr1', 2, 2), '0123456789', ' ' ), ' '), ' '), null, (substr('rr1', 2, 2)), null) from dual;
    D
    -

  • FEBP Missing automatically settlement for multiple customers

    Running transaction <b>FEBP</b> (Update Account Statement/Check Deposit Transaction) the settlement of the account is not automatically carried out when the payment includes two or more customers. The documents is found and shown and it is possible to do the settlement manual upon the proposal by pushing the accept button. What can be the reason for the missing automatic settlement?
    Best regards
    Kaj

    Hi Kaj
    Please check have you activated automatic worklist for multiple customers in transaction OB55. Please also check is the 'Use worklists' flag set in transaction FB00 in 'Open item processing' tab.
    If the above settings doesn't resolve the issue then the reported problem could be because of leading zeroes in customer numbers.
    Reason for this is that worklist are saved in table TFAVW without leading zeros. But in postprocessing is called with leading zeros in field account (RF05A-AGKON).
    I.e. in SAPLF40K FORM FILL_FTCLEAR AGKON is filled by this statement: ftclear-agkon  = bseg-kunnr . Because there is Alpha conversion exit for BSEG-KUNNR field account is filled with leading zeroes for eg. 0000007693.
    If AGKON in table ftclear is filled without leading zero worklists are considered in postprocessing.
    Hope this info clarifies your query.
    Regards
    Kesav

  • One dunning letter for Multiple Customers

    Hi SAP Gurus,
    In dunning i want to create one dunning letter for Multiple Customers, what necessary  settings that i have to do.please help me.
    Thanks in Advance.
    RAVI

    If it is single email address for all the customers of a sales organization, then you can maintain the email address at the sales organization level in t.code OVX5. If SPRO side change is not allowed, then you either maintain in SO10 text, or alternatively you can think about adding it in Z-table if it is easy to maintain and available in your system.
    Regards,

  • Printing sap script for multiple customers

    Hi,
    I have a requiremnt to print the form for multiple customers. How should i use the sap script function modules? i.e. in which sequence?
    for example customer A has 5 pages. customer B has 4 pages.
    after printing 5 pages of the customer A, it should print 4 pages of the customer B.
    regards,
    CK

    To print accroding to your requirment you should modify your driver program like this...
    Sort <Internal table by KUNNR.
    LOOP AT <internal table>
    AT NEW KUNNR. "Customer..
    **Call Function module OPEN_FORM
    END AT.
    AT END OF KUNNR.
    ***Call function CLOSE_FORM
    ENDAT.
    ***Call all your Write_FORM
    ENDLOOP.
    Regards,
    SaiRam

  • Passing multiple values to select-option low by submit at one go from zpro.

    Hi all,
    I have a requirement pass descrete multiple values form my z-program to to select-option low on selction screen of standard SAP program using SUBMIT statment at one go.At the same time select-option high will be empty.I will be thankful if anybody can help me in this regard.
    Sandeep.

    Hi Check this link...on submitting programs
    http://help.sap.com/saphelp_erp2004/helpdata/en/9f/db9d7535c111d1829f0000e829fbfe/frameset.htm
    here is the code . we are calling the same program....you can call any other program as well.
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.

  • How to pass Multiple entries of select-options to FM

    Hi friends,
            i need to pass values date_from and date_to of FM BAPI_AR_ACC_GETSTATEMENT in my report. i have select-option in the selection screen for the posting date i.e, s_pstgdate-low = date_from and  s_pstgdate-high = date_to.
        My question is how to pass values if the user enters multiple entries in s_pstgdate (selection-screen).
        Hope i'm clear with my question.
        Thanks in anticipation.
    Regards
    Poorna

    Hi,
    This is not possible.
    You may wish to call it multiple times with each row of your select-option, and consolidate the returned records.
    Better is to restrict the select-option with no-extension.
    cheers,

  • Multiple inputs like select-option

    Hi everybody,
    Please let me know if there exists an option in BSP for multiple inputs in inputfield, like we have in select-option in R/3.
    Thanks

    Hello Swarnali,
    You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    so sudo code will be:
    AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
    Select data from table.
       so_carr-LOW = value
       append so_carr.
    You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
    Thanks,
    Augustin.

  • Updation of FOC item for multiple customers at a time

    Freinds,
    I have an issue regarding Free Goods item updation using T code - VBN1.  Normally we are updating an FOC item with the main line item along with quantity(exclusive or inclusive) for a particular period. The same process will repeat for each customer code using the T code.  My question is, whether there is any option to update the same set of FOC item for multiple set of customers at a time, instead of entering one by one for each customers.  Please help me out in this.  Thanks.

    If this is going to be a regular exercise, then you need to consider to add one more combination of Customer / Material based on which, you can create LSMW and make use of it regularly.  This is straight and simple approach to achieve the desired result.  On the other hand, if you dont want to touch your existing configuration, then you have to copy the standard program SAPMV13N, create a BDC, add input parameters as you wish and upload.
    G. Lakshmipathi

  • Create a change request for multiple customers from spreadsheet

    Hello Experts,
    1.We have a spreadsheet with 100's of Customer data maintained in it , can we create a change request by downloading data from spreadsheet directly instead of manually entering the data in the CR. Also can we create a single change request for multiple Create customers.
    2.Can we create CR's automatically , lets say we have 100's of customer data loaded into MDG hub by Data Services using DEBMAS Idoc , can this create automatic CR's , is this possible.
    Thanks.

    Dear Collins,
    1.We have a spreadsheet with 100's of Customer data maintained in it , can we create a change request by downloading data from spreadsheet directly instead of manually entering the data in the CR. Also can we create a single change request for multiple Create customers.
    Answer:there are various options are available in MDG to process multiple material as shown below
    you can down load the customers using file down load funcationality and same change,upload the customers using the file Upload process.
    you can create a single CR for muntiple customers options are shown below.
    2..Can we create CR's automatically , lets say we have 100's of customer data loaded into MDG hub by Data Services using DEBMAS Idoc , can this create automatic CR's , is this possible.
    Answer:Yes you can create CR automatically using DTIMPORT tcode and some configuration needs to be done further reading go to the link SAP Master Data Governance - SAP Library
    regards
    shankar

Maybe you are looking for

  • Are there any web-based products out there for client project and interaction...

    Dear Web Designers, Is there any open source, free, php software packages out there (or web products - a doc com tool) that allows a web designer freelancer (like me) who has their own business to take in client requests or new project request descri

  • Interchanging rows and colums of internal table

    Hi all, I have one requirement to interchange the rows and colums of 3X3 internal table.(internal table contains 3 rows and 3 columns ). In the new internal table, I have to display the rows as column values and column values as rows.. It's urgently.

  • Can I use a LiveType LiveFonts font (Cool) for print?

    Hi, I made a short video in FCP 6 and used LiveType for some moving fonts in the video. I am in the process of making a book with the same subject matter and am stumped. My illustrator wants to use one of the same fonts that I used in LiveType. I do

  • 9i HOST() DEMO not working

    HI. I downloaded the 9iDS HOST() sample code, compiled the class file and when I try to run the form, the host90.fmx runs fine but nothing happens when I type in a command and push HOST button. ie I type DIR C:\ and nothing is displayed in console ou

  • Email Authentication using smart cards

    can i use javamail and smartcards for email authentication