How to put footer in the Delivery note  sap script form.

Hi All,
  i am new to SAP SCRIPT , can any one guide us how to Create a footer in the Delivery note sap  script.
  I need to put  some message if the stock of the material is "0"(zero).
       can anyone  tell me the process to do this.
Thanks
Channappa Sajjanar

Hi,
U create a window in script (Footer), and in the Driver program call this window at last..
eg:
create a window in script and call it at the end in the layout..
/E FOOTER
P1 'Write Required text what u want to display;.
now in print program, after printing all the line items in ur internal table call the FM write_form to print the footer...
LOOP AT itab.
  call function 'WRITE_FORM'
    exporting
     window = 'MAIN'
    exceptions
      others = 1.
endloop.
now call, FM write_form to print the footer
IF stock EQ 0.
call function 'WRITE_FORM'
    exporting
     window = 'FOOTER'
      element = 'FOOTER'
    exceptions
       others = 1.
endif.
Hope it helps!!
Rgds,
Pavan

Similar Messages

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • How to change sign negative to positive in sap script form

    Hi Guru,
    I had wriiten a below piece of code in my sap script form.Now I need all the negative sign to be convert to positive number means
    if KOMVD-KWERT = 123,98.00-  ,    then require 123,98.00 ..
    And for this I know the synatax is
    &KOMVD-KWERT(S)& .Bur the probleam is how to manage this  (I13) ...Because if i am wriiting
    &KOMVD-KWERT(S)(I13)&    getting no value ...Please help..
    IF &TNAPR-KSCHL& = 'ZD06'.
    &KOMVD-KWERT(I13)&
    endif.
    Thanks
    susri

    Hi SUSRIKANT,
    You can try this logic .
    DATA  : LV_KWERT TYPE STRING,
                  LV_LEN TYPE I,
                 LV_F_KWERT TYPE STRING.
    LV_KWERT = KOMVD-KWERT.
    LV_LEN = STRLEN( LV_KWERT ).
    LV_LEN = LV_LEN - 1.
    IF LV_KWERT +LV_LEN(1) = '-'.
    LV_F_KWERT = LV_KWERT + 0 (LV_LEN).
    ELSE.
    LV_F_KWERT = LV_KWERT.
    ENDIF.
    I hope this logic will be helpful for your issue.
    Thanks & Regards,
    Kumaran Duraiswamy.

  • How to list ABAP programs that uses a SAP script form?

    Hello everybody.
    Can you please tell me how to list all ABAP programs that uses a particular SAPscript forms? That is, given a form name, I can then list all programs that uses that form.
    Thanks in advance. I'm trying to Google this same info but I'm having a hard time formulating my search terms.
    Thanks.
    -- Carl

    Hi Carl,
      You can get them from table TNAPR,
      Give the FORM NAME and all the programs are listed
    check this table also TTFXP ,   TTXFPT
    Message was edited by: Chandrasekhar Jagarlamudi
    Message was edited by: Chandrasekhar Jagarlamudi

  • How to restrict the excess quantity delivery from the delivery note ?

    Dear All,
    As we know we make the delivery note with the reference of sales order so ordered quantity will be copied in the delivery note automatically. At the time of picking we can reduce the delivery quantity and make the partial delivery.
    But for example I have the sales order of quantity 5 and I make the delivery with refernce of same Sales order so my delivery quantity comes 5 and now if I make the quantity 7 instead of 5 in delivery note only and do the picking of 7 quantity yet system is allowing me then PGI is also possible. It means I delivering excess good than the ordered quantity. Which should not happen to make the cycle full proof.
    I dont what setting is required to avoid this major error. please Gurus Reply soon.
    regards,
    Vojas

    Hi,
    Use t-code 0VLP, select your item category which u determining in delivery >>> Go to details>>>in fron of Min/Max Qty put option B
    Check minimum qty   --- B (Situation rejected with an error message)
    Check overdelivery  --- B (Situation rejected with an error message).
    When user try to change qty,system will give error.
    Kapil
    Edited by: Kapildev Farakte on Dec 28, 2009 10:33 AM

  • How to look as to who has deleted the Delivery note

    Hi
    I have a issue from one of my customers who mentioned in his problem that he needs to find out as to who has deleted a Delivery note. He has mentioned the Delivery note number.
    I have tried looking at SM21 & tables CDHDR and CDPOS but I could not find. I tried to simulate the similar issue in my development environment by deleting one of the deliveries and checking in Transaction SM21if it displays my name, but it did not.
    Please help me in this issue or at least let me know how to approach this problem.
    Thanks

    Hi,
    You can find the Information from the CDHDR table
    Goto the table in SE16 and ehter the details for the table like
    OBJECT CLASS   As   LIEFERUNG
    OBJECT ID    As   DELIVERY DOCUMENT NUMBER ( It should be 10 digits)
    Now execute.
    It will all the information on who deleted.
    regards,
    santosh

  • How to create a pop up window while creation of the delivery note.

    Hello Experts
    How to create a pop up window while creation of the delivery note.
    As soon as we go in to delivery note creation screen in VL01N, immediately a pop up screen should be displayed on the screen containing the following details,
    For e.g.
    Str. Loc     Qty      UOM
    DE01        100        KG
    DE99          50        KG

    Dear all,
    i m having two document numbers for invoic of same types such as output type print program and smartform.
    biut the issue is im getting print preview for one invoic and for another invoic i m not getting any print preview.
    Directly the cursor comes to initial stage of vf03.
    suggest what to do
    Thanks and regarnds
    ravi

  • I have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    i have new music on the itunes but have not a clue how to put it on the iphone, it only seems to want to put the old songs on

    http://support.apple.com/kb/HT1386
    Are you manually managing your songs?
    In itunes - music do you see checkmarks next to your musis/songs.  IF so go find your new songs click on it and then sync your music again.

  • How to put distinct in the query

    Hi all,
    How to put distinct in the query.I checked in RPD , Distinct supported is already available. I marked the distinct check box in advance option still then i'm not getting distinct in the query.
    any idea , please help...

    In the RPD i have join between base table and view .i'm selecting 2 columns one from base table and other from view . which gives cartesian product . to avoid that i want to put distinct . I'm not using any measure . I'm taking direct columns.
    I'm getting distinct keyword if i'm accessing the report directly . but when i'm accessing it from dashboard in the back end while preparing the query it's writing distinct but the actual query which is sending to db does not have distinct.
    ==================================================
    RqList distinct
    VW_SCNR_114000074_TA_DATA.Match Identifier as c1 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Amt as c2 GB,
    VW_SCNR_114000074_TA_DATA.Tot Trans Ct as c3 GB,
    case when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '1' then 'Productive' when VW_SCNR_114000074_TA_DATA.Alert Quality Code = '2' then 'Non Productive' else 'Indeterminate' end as c4 GB,
    VW_SCNR_114000074_TA_DATA.Batch Identifier as c5 GB
    DetailFilter: Alert TA Data.Run Id > 0 and Alert Scenarios.Scenario Name = 'ScnroName' and Alert TA Data.Batch Id > 0
    OrderBy: c4 desc
    =================================================
    -------------------- Sending query to database named KYC1.1DEV-179 (id: <<16315>>):
    select T353.BATCH_ID as c1,
    case when T353.QLTY_RTG_CD = '1' then 'Productive' when T353.QLTY_RTG_CD = '2' then 'Non Productive' else 'Indeterminate' end as c2,
    T353.TOT_TRXN_CT as c3,
    T353.TOT_TRXN_AM as c4,
    T353.BREAK_ID as c5,
    T117.SCNRO_NM as c6
    from
    KDD_SCNRO T117,
    KDD_TA_DATA T130,
    KDD_TSHLD_SET T171,
    VW_SCNR_114000074_TA_DATA T353
    where ( T117.SCNRO_ID = T130.SCNRO_ID and T117.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T171.SCNRO_ID and T130.SCNRO_ID = T353.SCNRO_ID and T130.TSHLD_SET_ID = T171.TSHLD_SET_ID and T171.SCNRO_ID = T353.SCNRO_ID and T171.TSHLD_SET_ID = T353.TSHLD_SET_ID and 0 < T130.BATCH_ID and 0 < T130.RUN_ID )

  • How to print Warranty (Duration) on Delivery Note using PLD

    Hi,
    How can I print Warranty (No. of Months) on Delivery Note using PLD. Warranty is already defined in a service template which is assigned to Item Master record.
    when i try to print "duration" from OCTT is shows all the duration values set in all service templates with the combination of all the items in the delivery note. Please help me. I am working on SAP B1 2007 A PL47.

    Hi
    Its Very Easy just Follow the Steps:
    Create One DB field in Repetative area0 - Table -octt(contract Temp) Column- Duration(Duration of Coverage)
    Check the Item code Field or Item description field for EX( F_123), then in Duration DB field - Go to Properties -Field in that - General - Lint to - connect the  ( F_123), code Field or Item description field for EX( F_123),
    So it will show automatically Duration of the Item which was connected in master data.
    It works perfectly in 2007B PL 10.
    If issue Resolved pls close the thread
    Giri

  • How long does it take the 'Do Not Disconnect' screen to disappear?

    How long does it take the 'Do Not Disconnect' screen to disappear?
    I Just got my ipod nano a week ago. I put maybe 10 songs on there and then today, since I had some time, decided to start creating my library. By the time I decided to stop and plug in my nano so it can update, i had like 219 songs that had to be transferred. I watched each song on iTunes go to the ipod like usual and then my list that comes up when you select "__ ipod" is all grayed out like it's still updating. On the top of the iTunes screen, it says ipod update is complete though, and of course, my ipod has been saying do not disconnect for the past hour and a half with the battery fully charged. Does it really take that long for it to finish synching my songs? I mean I know I had a lot of songs to put on there put geez!

    Hi CocoaVixen718
    Welcome to Apple Discussions
    Try ejecting your iPod from iTunes. You might want to look at Knowledge Base Document #61685 about The "Do Not Disconnect" Message and Knowledge Base Document #93492 explains How to Safely Disconnect the iPod.
    Jon

  • How to from more than one delivery note - conversion into one invoice

    Dear Experts,
    How to from more than one delivery note - conversion into one invoice?
    Thanks and best regards,
    Wilson Hong

    Dear Wilson Hong,
    Single invoice for multiple deliveries will takes place based on these criterion
    1.If you want single billing document for multiple deliveries these data should be same in all order for all items.
    -> Payer
    -> Inco term
    -> Payment term
    -> Actual GI Date from Delivery
    -> Shipping Condition
    -> Account Assignment Group
    -> Exchange rate (in case of export sale order)
    -> Foreign trade data.
    2.In addition to this you need to maintain proper copy control settings between delivery and invoice.
    Go to VTFL transaction input your delivery type and invoice type then go in to the item level settings here you find field Data VBRK/VBRP maintain this field with routine 3-Single invoice.
    If the above data and settings are exists you can do single invoice for multiple deliveries.
    I hope this will help you,
    Regards,
    Murali.

  • Calcuation the BOX qty by the Delivery Note item level .

    Dear all
    I have face a problem in the delivery notes pack function
    for example
    DN =20001 , have 2 item,
    item A , qty = 10 pcs
    Item B,  qty = 20 pcs
    when to do the DN  pack, item A  10 pcs put into 2 box,
    item B , 20 pcs put into 4 box,
    in the DN header , " LIKP-ANZPK " can show the total box qty = 6.
    But I can't found the total  item box in DN item level .
    Because we need print the subtotal box qty in each item level .
    Does anyone have experience to solve this issue ?
    Thanks.

    Check by passing Delivery number (VBELN) and Delivery item (POSNR) to table VEPO and fetch VEMNG (Base Quantity Packed in the Handling Unit Item).

  • How can I check on the delivery of an photo but that I created and sent to a friend.  I have the order number but I can't find the tracking information.

    How can I check on the delivery of a photo book that I created and sent to a friend.  I have the order number but I can't find the tracking information.

  • Passing field info from PR to PO and to the Delivery note

    Hi!
         I'm adding custom fields in Purchase requistion , purchase Order and delivery Note.
         This custom field information has to be passed from requisition to the purchase Order and also to the delivery Note.
         I need Help in doing this.
    thanks,
    Shubha

    Hi!
       I used the MM06E005 to create and populate the custom fields for PO.
       Similary i used MEREQ001 to create and populate the custom fields for PR.
      All I need is .. When I go ME21N transaction. Click on document overview select  PR and that PR i drag and drop into the shopping cart. When i do that the values from  PR should copy into PO.
    Thanks
    Shubha

Maybe you are looking for