Script PO problem

Hi All,
I am working on scripts for purchase order form .
I am able to display the form perfectly.
Problem is if i have 2 units of measure in  PO ex. OPU = 'EA' and ODU = 'ST'.
then same line item is displaying two times.
I am using elemnts 'ITEM_LINE_2F' and 'ITEM_LINE_3F'
Can yanybody please provide solution where i am doing mistake.
Thanks

Hi ,
     Can u please give some more details like form name and which standard form u copied.
Thanks,
suma.

Similar Messages

  • SAP SCRIPT code problem

    521
    - Heading for trans. w/out sp.G/L indicators (item sorting method 2)-
    Transactions without special G/L indicators
    522
    - Heading for trans. with sp.G/L indicators (item sorting method 2)-
    &T074T-LTEXT&
    523
    - Heading for open item list of line items -
    &ULINE(71)&
    <K>Invoice No,,Reference.,,Inv.Date,,                   Due date,,,,
                 Balance</>
    &ULINE(71)&
    PERFORM GET_DATE IN PROGRAM ZREPORT
    USING &BSID-BELNR&
    CHANGING &S_DATE&
    ENDPERFORM.
                                                                                    530
    - Line items    Customer open items -
    &BSID-BELNR&,,&RF140-BELEGNUM&,,&BSID-BLDAT&,,&S_DATE&,,
    FORM get_date tables
            int_cond structure itcsy
            outt_cond structure itcsy.
    BREAK SNAGI.
    tables : bseg.
    data : w_belnr type ITCSY-value.
    DATA due_date TYPE rfpos-faedt.
    READ TABLE OUTT_COND WITH KEY name = 'S_DATE'.
      IF sy-subrc = 0.
        outt_cond-value = S_itab11.
        MODIFY outt_cond INDEX sy-tabix.
       ENDIF.
    SELECT SINGLE
    shkzg zfbdt zbd1t zbd2t zbd3t rebzg
    FROM bseg
    INTO CORRESPONDING FIELDS OF bseg
    WHERE
    *bukrs = bukrs AND
    belnr = int_cond-value.
    *AND vbeln = belnr.
    CALL FUNCTION 'NET_DUE_DATE_GET'
    EXPORTING
    i_zfbdt = bseg-zfbdt
    i_zbd1t = bseg-zbd1t
    i_zbd2t = bseg-zbd2t
    i_zbd3t = bseg-zbd3t
    i_shkzg = bseg-shkzg
    i_rebzg = bseg-rebzg
    I_KOART = 'D'
    IMPORTING
    e_faedt = due_date.
    outt_cond-value = due_date.
    MODIFY outt_cond INDEX sy-tabix.
    ENDFORM.
    Now the problem is that,it is int_cond-value is always picking up the first invoice number.
    and the net due date is always same for all invoices..?
    should I loop in the sap script or in the form..?

    Solved my self.
    just placing the perform and endform in 530

  • Script language problem

    Hi friends,
    We designed a script for purchase order for taiwans, and it is
    displaying the incorrect Payment Terms when outputted (e.g. printed) using the ZEBT(own outtype) output type in language 'ZF'.  The Payment Terms text displayed in the ouputted form is not the correct text for the Payment Term on the Purchase Order.
    and it is displaying correct when the outtype in language 'EN'.
    can any suggest me on this, how it is happening.
    Thanks.

    HI friend..
    I have faced the same problem very long ago..
    Try to debug the script first in se71.
    At the main window look for the field netwr....
    Just do some checking there..
    Otherwise i can think for u  some other solution...
    regards..
    saravannan...

  • Indic script display problem - Open Office PDF export does

    I am trying to create a PDF document using iText (a Java library) and I found out that Indic script specificaly Malayalam Language Unicode is not displayed properly. Ligature substitution and reordering is not working at all. (See attached image1.png)
    However, Open Office does display the text properly (see attached image2.png)
    and when I export this document to a PDF document, the text in the PDF is fine (See attached image3.png).
    I am suprised at this bevahiour. The font I am using in all the three case is FreeSerif.ttf, which has support for Malayalam language and has the Open Type tables that is required for ligature substitutions.
    Please help.

    One difference I noted is this -
    Document Property (Fonts) of the PDF with problem shows FreeSerif , True Type (CID), Embedded
    and Document Property (Fonts) of the Open Office Exported PDF shows Free Serif, True Type, Embedded SubSet

  • Script execution problem

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

    dear sir
    i got a problem with script execution. i have successfully  activate the form painter in ABAP editor. but i am getting the error like "Form  ZLASRISUD language EN is not active and has no errors". please give me the solution for above as soon as possible.

  • Help in script logic - problem in FOR loop

    Hi Experts,
    We are using BPC 7.5 SP08. I have written a FOR loop in script logic default.lgf which is as follows:
    *FOR %TIM_MEM%=%TIME_SET%
    *XDIM_MEMBERSET TIME =%TIM_MEM%
    *WHEN P_ACCT2
    *IS "OSDU"
    REC(EXPRESSION=[P_ACCT2].[ASSTCAINVURO][P_ACCT2].[COGSUPRVIPSA]/[P_ACCT2].[ASSTUPRVTAQTY],P_ACCT2="COGSUIPSAO")
    *ENDWHEN
    *COMMIT
    *NEXT
    As per my requirement, all this members: [ASSTCAINVURO], [COGSUPRVIPSA], [ASSTUPRVTAQTY] exists for months September to next year's August. But in my input schedule, the months are from August to next year's July(which is the company's fiscal year). Consequently the loop runs for month August to next year's July while I need to run the loop 1 month late(i.e. September to next year's August). This was achieved earlier by hard-coding the time members which we cannot afford as this requires to update these hard-coded member IDs every year.
    We have also tried using the "NEXT" property of TIME dimension as follows:
    *XDIM_MEMBERSET TIME =%TIM_MEM%.NEXT
    but %TIM_MEM%.NEXT doesn't get the month in 'NEXT'.
    Please suggest if there is any way out to solve this problem.
    Thanks in advance.

    Hi Appu,
    Even if you restrict the scope using the XDIM statement, your script will just run the number of times as per the for loop. Actually, in reality, the same calculation is happening again and again, in your code; since your calculation is not based on the time member.
    To use the for loop effectively, you need to incorporate the time member in your calculation.
    Please look at the below sample code:
    *XDIM_MEMBERSET TIME = %TIME_SET%
    *FOR %TIM_MEM%=%TIME_SET%
       *WHEN P_ACCT2
       *IS "OSDU"
          *REC(EXPRESSION=<CALCULATION>,P_ACCT2="COGSUIPSAO")
       *ENDWHEN
    *NEXT
    And in your calculation, you can use statements like
    ([P_ACCT2].[ASSTCAINVURO],TMVL(1, [TIME].[%TIM_MEM%]))
    This will ensure that everytime (as per the for loop), the calculation works on separate set of data.
    Hope you got the idea.

  • Script logic problem BPC 7.5

    Hi!
    We have a script logic that worked fine in BPC 5.1 but after our upgrade to BPC 7.5 it doesn´t work anymore.
    I will try to explain the part of or logic that doesn´t work anymore.
    We have 2 lines that will pass through the script, each line creates a temporary value  on KATEGORI ="#avskr1").
    Depending on the value created on  u201C#avskr1" it should do calculation A if the value is negative and calculation B if the value is positive. To do this we the following script logic:
    *WHEN GET(KATEGORI="#avskr1")
           *IS < 0
    *Calculation A
    ELS
    *Calculation B
    And this logic worked fine in BPC 5.1.
    If line X had -50 as a value in  u201C#avskr1"   and line Y had 75 as a value  in u201C#avskr1" , calculation A would be performed on line X and calculation B on line Y
    With the same example as above in BPC 7.5 calculation A will be performed on both lines.
    But if I change the logic to the following script logic in BPC 7.5:
    *WHEN GET(KATEGORI="#avskr1")
           *IS  = -50
    *Calculation A
    ELS
    *Calculation B
    Calculation A would be performed on line X and calculation B on line Y. It seems like the logic can´t handle <> signs in this script logic anymore.
    Regards
    Fredrik

    Hi!
    Unfortunately it didn´t help still the same error.
    And I just got an answer from SAP Support that there are a bug in the use of "Get whith When or lookup" in 7.5 SP03 which we currently are using, but it has been fixed in SP04. They just put up a SAP not 1515973 about the issue.
    Unfortunately they have no work around for this problem so I don´t know how to solve it untill we have installed SP04.
    Regards
    Fredrik

  • Pls. help, SQL script page problem

    Hi,
    Im using the Hands On Oracle Database 10g Express Edition for Linux. Im in chap06 already p. 218. I just uploaded the SYSMGMT1 script. After that I Clicked the script's icon but I cannot see any SQL DDL commands inside. Nothing happened. It said in the book that I supposed to see and browse the SQL DDL commands that make up the script. I tried to click RUN, nothing happened either. Is there some kind of a bug in my System? Pls. help me because I cannot continue this chapter's exercise if I cannot solve this first problem that I encountered here in chap06. Any help from the guys outhere is really greatly appreciated. Thank you.
    respectfully waiting,
    Len

    Hi, did you ever get a solution to this because I am having exact same problem - I cannot see the scripts if I upload them nor can I type them in from scratch as the area for seeing/editting the script doesn't seem to be accessible.

  • Irca script password problem

    Hello,
    When executing the irca script I keep receiving the following error : Failed to establish a database connection due to the following error : ORA-01017 : invalid username/password; logon denied
    The problem is that I'm very certain about the password that I'm using (it's my sys password). The username on the other hand is something that I'm unable to enter when executing the irca script. Perhaps this is the problem.
    All help would be greatly appreciated.
    Cheerz,
    Kris

    Oh what a tangled web we weave.  I read up on keychain and I don't understand what I'm reading.  Right now I cannot download my email on my computer, I can access it through the cloud. I'm sure it will be the same for the other iCloud feathers.   When I go to preferences and select iCloud when ever I try to sign in I get some dialog box it shows up "A keychain cannot be found to store 1076701306.  It doesn't matter whether I reset it or cancel it out iCloud preferences remains grayed out. 
    In keychain access on the left side under keychains and Read's local item, systems, and systems roots.
    When I select local items nothing shows up to the right under the name column even when down under all items is selected nothing shows up.  And nothing shows up to the right when under categories I selected the other options password etc.  On the other hand when I select under keychains systems, systems roots I do get items to show up on the right side under names under all items, passwords, etc.  Where do I start?

  • Script control problem

    hi good morning everybody
    iam in sap-script devleopment
    my problem is
    1) how to write the text or databade fields in the box, i hav created a box in the form latyout but i cant able to wite the data into that box.
    2)if there is 2 text elements in my main window namely a) address b) details
    my question is that did i requried 2 write_form fm to write these to text elements?
    bcaz iam not able to print the text which is under the second text element
    3) how to define the next page( i hav a main page and i wanna print the continues text in the subsequent page), did i requried call it in the print program?
    4) when iam witing the address and endaddress its not taking the /: means i hav to data base fields a) kunnr b) name1 so if iam defiing like this
    /:address paragraph p1
    /:&itab-kunnr&
    /:&itab-name1
    /:endaddress
    but iam not getting the output, but if i define like the below
    /:address paragraph p1
    p1& itab-kunnr&
    p1&itab-name1
    /:endaddress
    iam getting the result. whatz giong on here.

    1. After the box command use your fields, sure you can display the data in box.
    2. Only one write_form is enough.
    3. In pages definition fill the next page field. ( It can be same page or different page).

  • CS4 Action Script display problems

    I've just used Flash CS4 for the first time after using CS3 for some time.  When using the Action Script window to write code I had the strangest problem.  When writing or pasting code in the AS window the last couple of letters or characters get cut off.  I checked my preferences and they were they same as they were in CS3 (just to be sure).  Both CS3 & CS4 both have the Monaco font as the default.  I solved the problem by changing the fint to Arial.  Now the AS displays properly.
    Wondered if anyone has seen this happen and if they knew if it was a bug or something?
    I'm using CS4 with a newer MacBook Pro and sing AS2 in this project.
    Thanks so much!
    BC

    first button is called Enter and it is btn1 in the libary, i would like that to navigate to scene 2 frame 1. this was a graphics and i converted it to a button have also tried making it a movie clip it still doesn't work. the second button is Autobiogtaphy and it is btn2, i would like that to be navigated to the frame 10 and the frame is called About. I have CS4 and i realised all the stop actions worked when i saved it in CS3 and opedned it back up so since then  i have been using that format. im also using AS3 if that makes any difference.
    So i realised i haven't been much help on details hope this helps

  • Script path problem on Tiger 10.4.11

    Hi,
    I just came across a problem about scripting path I think.
    Now the applications located in /Applications folder on my MBP can not run their scripts properly.
    For example, Gimp has a script to detect and launch X11, but the script can not be loaded in the correct path setting.
    Therefore, even X11 has been installed it only shows X11 is required.
    I checked console log and got some error messages like:
    /Applications/Gimp.app/Contents/Resources/script: line 1: dirname: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 22: rm: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 23: mkdir: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 24: ln: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 31: ps: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 31: grep: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 38: mkdir: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 40: rm: command not found
    /Applications/Gimp.app/Contents/Resources/script: line 41: open-x11: command not found ...
    It looks like a misconfiguration of path, but I did not change my setting during these days.
    Further, it affects all of the applications located in /Applications folder.
    Has someone encounter the same problem?
    Any idea?
    TIA.

    Hi Chien-Ming Lai, and a warm welcome to the forums!
    Do Applications in OSX work from that Location?
    What Permissions are on X11?

  • Scripts - Amount Problem

    Hi all,
    Im facing this peculiar problem in scripts while passing amounts to external subroutines.
    Firstly I need to do a simple calculation of REGUP-DMBTR - REGUP-QSSHB and display the result in the script, as this calculation is not possible in scripts I need to pass these two fields to the subroutine.
    While passing thru subroutines they are passed in char formats, now as I cant assign the char format directly to curr fields please let me know how to go about this.
    I have tried using numc also, but using this the decimals are getting rounded off. Kindly let me know how to do this, any piece of code or advice is highly regarded.
    Secondly, a peculiar problem Im facing is about the decimals and comas placement, normally any amount field will be displayed as 1,234.45 , but in my case it is displayed as 1.234,45 sometimes and the normal way sometimes. This is behaving randomly, I have checked the user settings also and they are fine as 1,234,567.89.
    Presently my code is as below:
    FORM get_vat TABLES in_tab STRUCTURE itcsy out_tab STRUCTURE itcsy.
      DATA: lv_var(255)  TYPE c, "dmbtr,
            lv_var1(255) TYPE c, "qsshb,
            lv_var2(255) TYPE c, "dmbtr.
            var(25) TYPE c,
            var1(25) TYPE c,
            var2(25) TYPE c,
            var3(25) TYPE c,
            var4(25) TYPE c,
            var5(25) TYPE c,
            var6(25) TYPE c,
            vari TYPE ztemp, (NUMC length 13, decimals 0)
            vari2 TYPE ztemp,
            vari3 TYPE ztemp.
      DATA: lv_var4 TYPE dmbtr,
            lv_var5 TYPE qsshb,
            lv_var6 TYPE dmbtr,
            len TYPE i,
            len1 TYPE i,
            dot TYPE c.
      READ TABLE in_tab WITH KEY 'REGUP-DMBTR'.
      IF sy-subrc EQ 0.
        lv_var = in_tab-value.
        len = STRLEN( lv_var ).
        len1 = len - 3.
        dot = lv_var+len1(1).
        IF dot = ','.
          SPLIT lv_var AT ',' INTO var1 var2.
          REPLACE '.' IN var1 WITH ','.
          CONCATENATE '.' var2 INTO var2.
          CONCATENATE var1 var2 INTO var.
          CONDENSE var.
          vari = var1.
          SHIFT vari LEFT DELETING LEADING '0'.
          CONCATENATE vari var2 INTO vari.
          lv_var4 = vari.
        ELSE.
          vari = lv_var.
          lv_var4 = vari.
        ENDIF.
        CLEAR: dot, len, len1.
      ENDIF.
      READ TABLE in_tab WITH KEY 'REGUP-QSSHB'.
      IF sy-subrc EQ 0.
        lv_var1 = in_tab-value.
        len = STRLEN( lv_var ).
        len1 = len - 3.
        dot = lv_var+len1(1).
        IF dot = ','.
          SPLIT lv_var1 AT ',' INTO var3 var4.
          REPLACE '.' IN var3 WITH ','.
          CONCATENATE '.' var4 INTO var4.
          CONDENSE var.
          vari2 = var3.
          SHIFT vari2 LEFT DELETING LEADING '0'.
          CONCATENATE vari2 var4 INTO vari2.
          lv_var6 = vari2.
        ELSE.
          vari2 = lv_var1.
          lv_var6 = vari2.
        ENDIF.
        CLEAR: dot, len, len1.
      ENDIF.
      lv_var5 = lv_var4 - lv_var6.
      lv_var2 = lv_var5.
      vari3 = lv_var5.
      SHIFT vari3 LEFT DELETING LEADING '0'.
      lv_var2 = vari3.
      READ TABLE out_tab WITH KEY 'LV_VAT'.
      IF sy-subrc EQ 0.
        out_tab-value = lv_var2.
        MODIFY out_tab INDEX 1.
      ENDIF.
    ENDFORM.                    "get_vat
    Regards,
    Narendra.

    Done.

  • N97 java script enabled problem...

    hello i hope someone can help me,i bought a symbian dice game from handango,i had big problems trying to download it on to my phone,they mailed me back with a web address so that i can do it OTA,i can manage to get to site ok and then ready to down load,this message comes up and stops me frm downloading.
    the message is as follows
    Handango.com
    requires java script enabled browser to view
    pls enable java script on your current browser
    or download a latest version!!!
    i have gone into
    options
    settings
    general
    java/ECMA
    and enabled but itdont seem to work
    any help would be really appreiciated
    and many thanks in advance...

    It could be that handango or whatever site u using is just not optimized for mobile browser
    You know what I love about you the most, the fact that you are not me ! In love with technology and all that it can offer. Join me in discovery....

  • Script: Page Problem.

    Hi Experts ,
                  In the script .. i have to display one 1 page in the output but the output is coming 3 pages...and in that first 2pages are dummy output and the 3rd page is the correct output.
      in se71 i have put only one page . in the mode i selected INC but i have even changed to HOLD ...the output is the same . So how can this problem be solved? Experts i knw its a simple one plz help me...
    I have give good points to people who have answered my questions! Its urgent...plz...
    Regards
    Sunita..

    hi
        I got same problem in my script .  When i delete the unwanted coding in my script I got output in only one page.
    at that time i copied from standard one and change as per our requirement.
        Please check your code is there any unwanted code is there for displaying . It may help you.
    Regards
    Rami Reddy

Maybe you are looking for

  • How can i get all the missing artwork after transferring my library

    Help i'm missing a load of artwork after transferring  itunes library from old widows laptop to new imac. I have tried getting album artwork from the advanced menu but it hasn't found all of it only 70 album artwork out of 190 is showing!!!!! been tr

  • Unable to locate Acrobat Pro 9.x serial number to upgrade to 11

    Greetings. I have a licensed version of CS5 which included Acrobat 9.x. I've been trying to upgrade to Acrobat 11 and the installer is indicating that my serial number is incorrect. In doing a bit of searching online I've seen indications that the 9.

  • Smartforms output in XML format

    Hi everyone, I am very new for smartforms and my requirement to convrt given smartform in XML format, I am going through Form Attributes -> output options -> output format -> XSF output , then I am giving proper value in output mode & in Output Devic

  • CProjects - Approval Document Password setup

    Hi all, Can someone provide the configuration / setup that needs to be done so  that the approver (Phase Approval) does not have to type in the password when granting a phase approval. I believe it is some kind of a user certificate / SSO issue which

  • Moving Price difference

    Hi, Please tell me the use of T.Code- CK82 (List of Existing Material Cost Estimates). Why in Material Master Moving Price is showing different than showing in T.Code- CK82. Please guide.