Value not passing urgent

data:l_lotno like /JJVC/ERR851-master_lot_num,
        l_batno like mchb-charg.
loop at i_inv_data into wa_inv_data.
    l_batno = wa_inv_data-charg+0(1).
    if l_batno ca SY-ABCDE.
      translate l_batno to upper case.
      l_lotno = wa_inv_data-charg.
      perform f_idoc_851.
      perform f_idoc_52 .
      perform f_idoc850.
    else.
      if wa_inv_data-charg na SY-ABCDE
        and wa_inv_data-werks eq c_us11.
        l_lotno = wa_inv_data-charg+0(6).
        perform f_idoc_851.
        perform f_idoc_52 .
        perform f_idoc850.
      endif.
    endif.
  endloop.
data:l_lotno like /JJVC/ERR851-master_lot_num,
       l_batno like mchb-charg.
IF p_werks EQ c_us11.
    SELECT   a~docnum    "doc number
             b~credat    "creation date
             b~status    "status of idoc
             b~statxt    "last error message
             FROM /jjvc/err851 AS a INNER JOIN edids AS b
             ON adocnum = bdocnum
             INTO TABLE i_idoc_error
             WHERE a~master_lot_num eq l_lotno
             AND werks EQ p_werks.
    IF sy-subrc <> 0.
    ENDIF.
the data in l_lotno and l_batno is not passing from the above if condition to the select statement can any one help me in this.

You have to declare the l_lotno and l_batno as global variables.
here they are local variables and their scope is withing the block in which they are defined.
Declare them outside the blocks(Performs etc)
Regards,
Ravi

Similar Messages

  • Change document  - Workflow Event Container value not passed

    Hi Iam working on a customer create notification scenario where in we are sending a notification to SAP Inbox whenever a customer is created.We are checking industry key(KNA1-BRSCH) value through a check function module.When the customer is created in the system the system triggers the corresponding even it gets in to check module and an exception is raised saying Industry key does not have any value.
    Problem is Industry key value is not passed on to the container.
    Where might be the problem...?
    Is anything missing in SWEC(Events for change document)
    -but the event is trigerred...container value for industry key not passed...
    Please advice...
    Thanks in advance!

    Refer to link below.
    Sandy

  • Values not passing from program to Layout

    Hi Abaper's
    My requirement is I need to set company logo in Invoice ( VF03 ) if a particualar condition satisifies, for this I have set a FLAG in my
    driver program and called the FLAG in my Script Layout.
    Here my issue is, for certain invoices the FLAG set in the program is being called in the Layout and Logo is displayed in invoice copy ( when excuted both in foreground and back ground).
    But in certain invoices, if run in foreground none of the values ( means not only flag but also all the values to be passed to layout)
    is displayed in invoice. It is only displaying the hard coded values in the layout ( showing blank page ).
    and if I run in background all the values are passing to layout except all Global Variables (flags) in the program even though it
    has value in the program.
    Please advice what should be the problem, I have checked with my Functional and it seems to be fine in customization part.
    Karthik
    Edited by: Karthik R on Sep 21, 2010 2:42 PM

    Hi Tamas,
    I have tried it, but still not able to figure out the exact problem....since while running in background or foreground some of the all values including my logo are displayed in invoice but for some invoices none of the values from driver prgram is getting passed to layout while running in forground....but when run in background all values are passing except the FLAG set in the drvier program.
    what should be the reason for this ? for some invoices all the values from driver is passing to layout but for some cases its not passing

  • Values not passing from form to context attributes (value attributes)

    Hi Experts,
    I have bound the properties of theadobe interactive form (WD-Java) to the context attributes but the values are not passing to the value attributes at runtime.
    For your information I have not bound the pdfsource binary attribute of the view to the custom controller pdfsource binary attribute.
    Please advise.
    Thanks,
    Shobhit

    Context
       GetData - ModelNode mapped to controller context (DataSource)
             Attribute1 - Value Attribute (Form Field)
    Is it allright to have the Data Source as a ModelNode (mapped to the controller context node) and then have Value Attributes under the ModelNode which are then bound to the adobe form input fields.
    I know its frustrating to advise on such questions without looking at the code actually. But I would definitely need your support.
    If possible could you mail me a project of yours where you have the form being PREFILLED with some values coming from a RFC FM and then the same form gets posted to SAP though another RFC FM.
    Thanks,
    [email protected]
    OK. When I create a Fresh Adobe Interactive Form application, it works fine.
    The problem Im facing is in the case, when Im using an existing PDF file created in the ABAP stack (TCode SFP). I am importing this PDF file into the WebDynpro Java Application and then binding the fields. So in this case the context binding does not work.
    You guyz are right, I need to check if there is any other script which exists. But still what are views after this update?
    Message was edited by:
            Shobhit Swarup Mathur

  • BRM - Derived roles values not passing to backend

    Hello ,
    When we define a derive role with org values in BRM . derived role getting created in backend but it is not passing org values in backend .
    org values are empty in derived roles for backend system
    we have finished su25 activity as well in backend
    we are in sp12 on NW7.31
    Any solution available
    Regards
    Rajendra

    Hi Andrzej,
    Generation and maintain authotization are working fine .
    My issue is, in derivation phase, when I derive a role in BRM,
    the derived role which got created doesn't have org values in backend system.
    So I want to know whether this is bug or Derivation phase in BRM will not pass org values to back end
    Regards
    Rajendra

  • Field Value not passed from IDOC (orders01) to File Generated

    Hi All,
    I have added a custom field to a PO at item level (ekpo-Ztest)and Passing it to OUTBOUND IDOC.
    In process of passing to IDOC(ORDERS01) i mapped the field to segment E2EDP19001-MFRPN and i see the value in the IDOC when i view it in WE02.
    The problem is when i generate a file i don't see the value of E2EDP19001-MFRPN
    We are already using QUALF,IDTNR,KTEXT of E2EDP19001 and i see all the values of these fields being passed from IDOC to file generated .
    Let me know as i'm missing anything in here
    I quick note ,
    I see 3 version for E2EDP19 Segment for orders01
    Vesrion
    002     E2EDP19002                             8     242     02/14/2005
    001     E2EDP19001     40A                    5     160     08/19/1997
    000     E2EDP19             30A                     3     108     04/03/1995
    1)The version 000 and 001 are released but not 002 Version
    2)May be i 'm using version 000 and its out put length is only 108 and these fields(QUALF,IDTNR,KTEXT) together occupy 108 and there is no room for my new field but My IDOC dispalys E2EDP19001 and E2EDP19002 and also it displays my new field but its the output file generated that doesn't show the value
    Thanks

    Resolved Myself
    Thanks

  • VOFM Condition base value not updating(Urgent)

    Hi All,
    I have created a Condition Base Value 901 for Sales Order in Transaction VOFM.
    Following is the code when I enter the Sorce text.
    FORM FRM_KOND_BASIS_901.
    *{   INSERT         DEVK901384                                        1
    DATA: XXKOMV TYPE KOMV,
          XAKOMV TYPE KOMV,
          VKAWRT LIKE KOMV-KAWRT.
    IF KOMP-VKAUS = 'YAB'.
    XXKOMV = XKOMV.
    CLEAR VKAWRT.
    LOOP AT XKOMV INTO XAKOMV WHERE KSCHL = 'YIPR'.
    IF XAKOMV-KAWRT > 0.
    VKAWRT = XAKOMV-KWERT.
    ENDIF.
    ENDLOOP.
    XKAWRT = VKAWRT.
    CLEAR XKOMV.
    XKOMV = XXKOMV.
    ENDIF.
    *}   INSERT
    ENDFORM.
    But this code is not updating the Condition screen for items condition value.
    Regards
    Vijai

    no, the code contains the logic to determine the base value, then the value has to be passed to xkwert.
    take some other base formula as template.
    pls. rewad if helpful
    Roberto

  • Presentation Variable Value not passing when used in Column Formula.

    Hello Gurus:
    Please help me with my requirement.
    We are trying to show a data backout in report, for example.
    For a Product Group Code of 2435 which belongs to Report Line C059 has a Sales Amount of $4,266.90 and in report we want the same Sales Amount of $4,266.90 to be shown as -$4,266.90 (Negative) under a Report Line C080.
    So in a report there should be same Sales Dollars as Positive for C059 (from Source) and Negative Sales Amount for C080 (Condition to be applied in Report).
    Solution I Tried
    I tried to create a Presentation Variable (SQL- Which would fetch me Sales Dollars for Product Group Code 2453) which returns with $4266.90 and then applied it in Answers in Logic (Case when Report Line = C080 then @{Presentation Variable}*-1 Else Sales Dollars END).
    Issue I am facing:
    Presentation Variable is coming as 0 and if i give any Format (Default Value) it shows the same default value in report. I checked the SQL i used and even when I Preview the Variable its showing me $4,266.90, but not in report.
    Please let me know a way to get this Presentation Variable value into my reports.
    Also please let me know if i can achieve this requirement in any other way.

    Thanks for your reply Paul. But there is no Invoiced Amount for Report Line - 'C080' from source. Invoiced amount of C059 should show as -ve Invoiced amount for CO80.
    In a report C059 should show +ve Sales Dollars and C080 should show same amount as -Ve Sales Dollars.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Variable values not passing with Web Application Designer

    We are on SP 11
    I have defined variables in the planning modeler (no personalization) that should be used when executing a copy function.  The idea is to have ready input capability.  For example, the variable VERSION is defined - when the planning function is executed, the user should have the ability to select a version value.   I have defined TWO button groups to enable the user this feature, however the values will not override the default variable value defined in the planning modeler
    BUTTON GROUP #1 - this is a copy function button with Display Varable Screen option ON.  When I press the button, the variable entry WEB Page Dialog pops up (with the default value).  If I input a differenct value, we get the error the the value characteristic is not included in the selection.  If we use the drop down available on the dialog box to select available values, we get what's on the Web Template (it seems the drop down option is not working)
    BUTTON GROUP #2. - This is a VARIABLE BUTTON using the Open Variable Dialog command (the expectation was to override the default value) When we use the drop down option on the Web Page Dialog, we have the ability to select the valuse available, however the value does not override the default value defined on the planning modeler.
    Any suggestions are appreciated.
    Regards,
    Andrew Ramirez

    Hi Andrew
    I realise your posting is now 6 months old.
    We are also on SPS11 and have a similar problem.
    Did you manage to solve this problem>
    Thanks
    Ian

  • VALUE NOT PASSING FROM 1 PAGE TO OTHER PAGE ?

    Hi friends
    I have bsp application  with 3 htm pages.
    I have a input value in first page like i_matnr.
    If i give input material no its valu is coming in second page.
    But its not coming in 3rd page.So what i have to do?
    Moosa

    Hi:
    you should put like
    in page attribute,
    declare matnr
    and in oninputprocessing or at where you have put your query.
    matnr = request->get_form_field( 'matnr' ).
    Regards
    Shashi

  • Drop down values not passed to second scenario stage

    Hi,
    I've created a drop down with specified values in the drop down list. The field is bound but when the form is opened in the second scenario stage these values have disapeared?
    Any help appreciated.

    Hi ,
    Can you please post how did u resolve that issue .

  • Dashboard prompt value is not passing into the report

    Hi,
    I am using OBIEE 10g. The problem is in Oracle BI Answers
    I have a prompt and its related report. In the prompt, in one of the column, I am using sql result. The sql query is a co-related sub query where i have used 2 tables. employee_data and employee_region. The reason for using sub-query is that there is no data_center column in the employee_data table. It has the records for all the data_center e.g USA, UK,IND,AUSTRALIA etc So, I used the sub query with condition which will give the result on a particular data center (here it is USA) and this sub query's output is input for the main query. And the prompts works fine and gives correct result
    The sql query used for the column in the prompt (in Oracle BI Answers) as
    SELECT EMPLOYEE_DATA.ENAME FROM EMPLOYEE WHERE EMPLOYEE_DATA.ENAME IN (SELECT EMPLOYEE_REGION.ENAME FROM EMPLOYEE WHERE EMPLOYEE_REGION.DATA_CENTER = 'USA')Now in the report, there are 2 coulmns. - EMPLOYEE_DATA.ENAME and EMPLOYEE_REGION.DATA_CENTER
    I have used the main column EMPLOYEE_DATA.ENAME for filter as 'prompted'.
    The problem is the value from the prompt is not passing from the prompt to the report, what I found. Because, instead of showing the result for 'USA' data_center, It also shows other data_center 's (UK,IND,AUSTRALIA) data.
    How filter condition I should use for EMPLOYEE_DATA.ENAME column in the report so that the prompt value will pass to the report properly ?
    Thanks
    Edited by: Kuldip on Feb 21, 2013 6:17 AM

    Hi Kuldip,
    There are 2 ways of doing it.
    1. Nice and good: For the section where the report is put have a condition to display only if it returns rows. For details please refer to :
    http://bischool.wordpress.com/category/guided-navigation/
    2. The easy way: Add a "No Result" view to your report and add few spaces in the text.
    Let me know if this helped.
    Regards,
    Jay

  • Filters 'OR' function not passing the values to the sql

    Hi,
    I am facing an issue with the 'OR' function on the filters that are used in the reports.
    The report needs to fetch all the records on the three tables as the user enters the value in the dashboard prompts.
    eg: [   update_dt_A1 is prompted
    and user_name_A1 is prompted ]
    or
    [    update_dt_B1 is prompted
    and user_name_B1 is prompted ]
    or
    [    update_dt_C1 is prompted
    and user_name_C1 is prompted ]
    The values entered in the dashboard prompt gets passed to the filter, but the vaules are not passed over to the SQL that runs on the database, hence the reports shows all values and does not reflect the values entered.
    When the 'OR' function is replaced with 'AND' the values get passed to the SQL.
    Can anyone help on what is the issue on the filters?
    Thanks

    Here is how my Filters are set up
    Vendor Name is Prompted
    AND
    Vendor Number is Prompted
    AND
    [   [Last_update_date_Vendor is prompted
    AND
    User_name_Vendor is prompted]
    OR
    [Last_update_date_Site is prompted
        AND
        User_name_Site is prompted]
    OR
    [Last_update_date_Bank is prompted
        AND
        User_name_Bank is prompted]
    The values from the dashboard prompts gets passed to the filter, but the sql that runs does not take the values in the where clause.

  • LabVIEW 6.1 If For Loop count terminal is zero then value going through the loop is not passed on to the output of the loop

    Hello, one of our customers just encountered an execution error in a vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or 6.01. I have a simple vi that has two encapsulated For Loops. Two string arrays go in, one goes out of the outer loop. Inside the outer loop the first array is indexed. The string which results from this indexing is compared with all other strings from the second string array in the inner loop. If it matches one of the strings of the second array, it is not outputted, otherwise this string goes through the inner For Loop to the output of the inner loop and from there to the output of the outer loop. The count
    terminal of the outer/inner loop is connected to the Array Size of the first/second string array. If the second array is empty, that means that the element in test from the first arry cannot match anything from the second array, so the element in test is send to the output of the inner loop and from there to the output of the outer loop. This works fine in LabVIEW 5.1 and 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never executed if the count value is zero (which is correct), but the data line running through the loop is not executed either, which is different to what LabVIEW 5.1 and 6.01 do. There, the input string is sent to the output of the inner loop correctly even if the loop counter is zero. The solution is easy - I just have to connect the output of the outer loop to the data line BEFORE it enters the inner loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is supposed to be a feature, but it brings some incompatibility in programming between the
    different LabVIEW versions.
    Best regards,
    Gabsi

    Hi,
    When a for-loop runs zero times, all outputs are 'undefined' (and should
    be).
    Besides, how would LV know what the output of a not executed routine should
    be?
    It might be handled differently in LV5 and LV6, which is unfortunate. In
    both cases, the result is undefined.
    It's not a bug. It's just something that should be avoided in any LV
    version.
    > The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    In some cases this does the trick. But if the data is changed in the inner
    loop, this will effect the results if the N is not zero.
    Technically, I think the output in this construction is also 'undefined'.
    But LV handles this as expected / desired.
    Another solution is to use a shift register. If N is zero, the input is
    directly passed through to the output.
    Regards,
    Wiebe.
    "Gabs" wrote in message
    news:[email protected]...
    > LabVIEW 6.1 If For Loop count terminal is zero then value going
    > through the loop is not passed on to the output of the loop
    >
    > Hello, one of our customers just encountered an execution error in a
    > vi running under LabVIEW 6.1, which doesn't exist under LabVIEW 5.1 or
    > 6.01. I have a simple vi that has two encapsulated For Loops. Two
    > string arrays go in, one goes out of the outer loop. Inside the outer
    > loop the first array is indexed. The string which results from this
    > indexing is compared with all other strings from the second string
    > array in the inner loop. If it matches one of the strings of the
    > second array, it is not outputted, otherwise this string goes through
    > the inner For Loop to the output of the inner loop and from there to
    > the output of the outer loop. The count terminal of the outer/inner
    > loop is connected to the Array Size of the first/second string array.
    > If the second array is empty, that means that the element in test from
    > the first arry cannot match anything from the second array, so the
    > element in test is send to the output of the inner loop and from there
    > to the output of the outer loop. This works fine in LabVIEW 5.1 and
    > 6.01, but NOT in LabVIEW 6.1. In LabVIEW 6.1 the inner loop is never
    > executed if the count value is zero (which is correct), but the data
    > line running through the loop is not executed either, which is
    > different to what LabVIEW 5.1 and 6.01 do. There, the input string is
    > sent to the output of the inner loop correctly even if the loop
    > counter is zero. The solution is easy - I just have to connect the
    > output of the outer loop to the data line BEFORE it enters the inner
    > loop. But: I don't know if this is a LabVIEW 6.1 bug or if it is
    > supposed to be a feature, but it brings some incompatibility in
    > programming between the different LabVIEW versions.
    > Best regards,
    > Gabsi

  • Screen filed values are not passing to program

    Hi Good Evening,
      I have appended strcture ZCORP to LFA1. The ZCORP structure having two fields ZGRP_D & ZNAME1. In the screen  I have added two screen fields LFA1-ZGRP_D & LFA1-ZNAME1 from data dictionary.
    When I enter values to these two fields it's not passing back values back to the program.
    The declaration would be like
    DATA: LFA1-ZGRP_D LIKE LFA1-ZGRP_D ,
          LFA1-ZGRP_D LIKE LFA1-ZGRP_D .
    After pressing save I need to copy these values into below fields.
       zmat_grp = LFA1-ZGRP_D.
      zgrp_d   = LFA1-ZNAME1 .
    But the values in LFA1-ZGRP_D & LFA1-ZNAME1  showing blank. Please guide me where is going in this case.
    I will be very helpful.
    Thanks & Best Regards,
      Mahesh

    Hi,
    You need to pass or assign the values in PAI.
    MODULE user_command_9000 INPUT.
    MOVE LFA1-ZGRP_D  TO zmat_grp.
    MOVE LFA1-ZNAME1  TO zgrp_d .
    ENDMODULE.
    Hope this helps you.
    Plz reward if useful.
    Thanks,
    Dhanashri.
    Edited by: Dhanashri Pawar on Jun 18, 2008 1:12 PM

Maybe you are looking for