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

Similar Messages

  • How to use a sap scripts for  multiple languages

    hi gurus
    what are main events in that are used in ALV reports.........
    regards
    baskar

    Hi Bhaskar,
    in the alvs these are the main events.
    1.slis_t_listheader,
    2.slis_t_fieldcat_alv.
    3.slis_t_sortinfo
    4.slis_t_events
    5.slis_t_print_alv.
    6.slis_t_layout_alv.
    and also used these two events.
    1. top-of-page.
    2.top-of-list.

  • 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

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • 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.

  • SAP Script for Delivery

    Dear ABAPer's ,
    I am working on a SAP Script for Delivery.The requirement is I need a print out for each line item in a delivery in a seperate page.
    For example if the delivery has 3 line items.I should print each line items details in 3 seperate pages.
    I have modified the routine RVADDN01 according to my requirements.
    How to do this...

    Hi Sapient,
       In order to create a page for each line item what you have to do is in the script part where you have written the values.
    for eg: if the line item details(VALUE) are in an internal table "<b>I_DETAILS</b>"
    <b>Script:</b>
    /E DET
    P1 &I_DETAILS-VALUE&
    /: NEW-PAGE
    <b>Driver program:</b>
    Loop at i_details.
    CALL FUNCTION 'WRITE_FORM'
       ELEMENT                        = 'DET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'.
    Endloop.
    Try this it would work.
    Reward if helpful.
    Regards,
    Tushar

  • Sap script for Delivery(item wise)

    Dear ABAPer's ,
        I am working on a SAP Script for Delivery(<b>Item wise</b>).The requirement is I need a print out for each line item in a delivery.I am using tcode VL71 for taking prinout.
    I have modified the routine <b>RVADDN01</b> according to my requirements.But the problem is i am not able to capture
    which line item is selected.Whichever lineitem i select it is giving the details of all the line items.
    Am I using the correct routine or someother routine is available for item wise details.
    Please clarify.

    hi SAP ,
    u have selected right one , Just Debug the script from which text Element u are getting the data into Form, then check ur Logic.
    Regards
    Prabhu

  • 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,

  • 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

  • Make IT0105 accept same SAP userID for multiple PERNR

    hi,
    How do i make IT0105 accpet multiple SAP UserId for multiple PERNR for a single PERSON ID. this has to be done for a Concurrent Employee landscape.
    All PERNRs of a single PERSON ID should have same userid in 0105. How do i copy uname for all PERNR.
    ags.

    Hi,
    This is a standard control.
    System checks the value MAIL SAPSY in table T77S0 and for that specific subtype of 0105 does not allow multiple entries.
    Changing the value in T77S0 - as indicated in its help - would harm your system and is not recommended.
    Regards,
    Dilek

  • 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

  • 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

  • How to create a sap script for sales order header items?

    Hi friends i am totally new to scripts i have got a task where i have to create a sap script for sales order header items details, the clue that i have got is to create using MEDRUCK but i have got no idea please can any body help me with this task with any sample sap script?
    Points will be rwwared with out fail Thks in advance.

    Hi,
    The Standard Form NAme is RVORDER01
    Regards
    Sandipan

  • User Email Id on the SAP script for the balance confirmation

    User needs mail id on the SAP script for the balance confirmation
    I have checked the AR-->Correspondence but not able to figure out.
    Thanks

    Hi,
    Actually the issue is:
    User(Witty Lam) wants his official Email id while generating the SAP Script on header.
    We are able to get the Fax and Telephone number but Email id is not coming.
    Can you help me out in finding the place where we maintain the USER's phone, fax number and email id.
    I have identified the Structure and field i.e FSABE-INTAD
    My project is production support project..
    Thanks,
    Jittesh

  • New SAP scripts for P14,P35, P60

    Can anyone let us know where we can get sap script for HR_GB_P14_2010,
    HR_GB_P35_2010 and HR_GB_P60_2010?

    Hi Vijay,
    The sap script of HR_GB_P14_2010 and HR_GB_P35_2010 are provided via
    Note No. 1395778 but the HR_GB_P60_2010 is still under process. You would
    get the same via Note 1415913, which is still under process as mentioned
    in above note.
    Regards
    Roop

Maybe you are looking for

  • Apple TV refuses 802.11n

    Howdy folks... Bad week for Apple products for me. I went through two iPhones and now my Apple TV has decided to downshift! In the middle of watching a movie, the screen went black and came back with "Your iTunes Library is unavailable, make sure *co

  • Using Imovie clip files on a pc

    Hi I used Imovie to log and capture from dvcam then i copied everything from the clips folder to dvd. the problem is my doesnt recognise the format. Is there anyway i can use these on my pc? I intend to use premier pro1.5 and i dont mind re-rendering

  • Pagemaker 7.0.2 won't install on Tiger Mac G4

    I want to print or make a pdf of something I wrote in Pagemaker that has a lot of pages but I can't get Pagemaker to open and can't reinstall it. It keeps telling me I don't have this or that file, one after another. The Install VISE doesn't show up

  • Problem with cflogin

    I am using cflogin for processing login page and use session variable to store info, but I have a problem that when I login to admin page (www.mysite.com/admin/index.cfm) It has no problem but when I return to my homepage (www.mysite.com/index.cfm ty

  • Can existing JSF apps import into JSC

    I have a a number of existing JSF applications that were manually created (JSP,code, etc)musing JSF 1.0 FCS. I have tried to import these into the visual designer JSC to look at how they would display but it seems that the JSF tags are aways stripped