Passing Values to BADI in LUW

We have a process in SRM where incoming IDOCS are coming in from an external source. In our Z function module the BBP_DOC_CHANGE_BADI is called and we need to pass a value to DOC_CHANGE_BADI to make sure we process only code for this process.
Options:
1) EXPORT/IMPORT To Memory ID - Did not work
2) EXPORT/IMPORT TO INDX - Did not work, we processed 10 idocs at once and memory got lost during 1 update.
3) Write to Z table in Z FM, and then read table in BADI. Current solution.
4) Tried to use field symbols  (FM(field1) didnt work.
Any other ideas?

Hi Divya,
Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
Regards,
Heidi Duan
Heidi Duan
TechNet Community Support

Similar Messages

  • Pass values from badi to a  z report

    hi  expets,
    i am using badi  'ME_REQ_POSTED  ' for some requirement but i need to capture the doc no posted in this badi  and store it in a variable and use it for further processing in  a bdc , can anybody help me out for this , i am new to abap objects .
    thanks
    reagrds

    This is used in same way as in classic approach. You can export/import entire table as well.
    "in BADI
    EXPORT mem_tab = "pass your table here
                   TO MEMORY ID 'ZMY_MEM_ID'.
    "in other program
    data: itab type table of ....
    IMPORT mem_tab = itab
                 FROM MEMORY ID 'ZMY_MEM_ID'.
    "here you have your ITAB with data inside
    Regards
    Marcin

  • Help passing values to graphics

    I am able to create some graphics in a stand-alone app, but I am having some difficulty passing values from one class to a sub class of JPanel.
    I can create a blank bar graph, the x and y axis, the title and labels, etc, but I need some values from another class passed in, and I'm not sure where to do this. Any suggestions would be appreciated.
    Below is a simple gradebook program, and I want to be able to graph the individual scores along with the averages on each of three tests. The problem is in the DrawChart class.
    thanks in advance!
    //This starts the graphical representation of the data<br />
    //----------------------------------------------------------------------------------------------------------//<br />
    class DrawChart extends JPanel<br />
    { <br />
    // constructor<br />
    public DrawChart()<br />
    {<br />
    setBackground( Color.WHITE ); // set the background to white<br />
    } // end DrawChart constructor<br />
    <br />
    // draws a Chart using concentric circles<br />
    public void paintComponent( Graphics g, )<br />
    {<br />
    super.paintComponent( g );<br />
    g.setColor(Color.BLACK);<br />
    g.drawLine(30, 25, 30, 130); //this is the y-axis<br />
    g.drawLine(25, 130, 605, 130); //this is the x-axis<br />
    Font font = new Font("Serif", Font.PLAIN, 10);<br />
    g.setFont(font);<br />
    <br />
    <br />
    //each test score width = 10, space = 5, width for avg = 20, buffer between tests = 40<br />
    //(10 bars and spaces = 150) + 20 = 170 for each test <br />
    //170 * 3 + 40*2 = total width = 570, but allow the <br />
    <br />
    //The following are the values shown left of the y-axis. If there were many more, it would have been worth <br />
    //while to set up a for/next loop to generate them<br />
    //because of the way these are set, they are all left-justified <br />
    g.drawString("100", 10, 30);<br />
    g.drawString("90", 15, 40);<br />
    g.drawString("80", 15, 50);<br />
    g.drawString("70", 15, 60);<br />
    g.drawString("60", 15, 70);<br />
    g.drawString("50", 15, 80);<br />
    g.drawString("40", 15, 90);<br />
    g.drawString("30", 15, 100);<br />
    g.drawString("20", 15, 110);<br />
    g.drawString("10", 15, 120);<br />
    //This will set up the labels below the x-axis<br />
    g.drawString("Test 1", 65, 145);<br />
    g.drawString("Avg.", 150,145);<br />
    g.drawString("Test 2", 275, 145);<br />
    g.drawString("Avg.", 360,145);<br />
    g.drawString("Test 3", 485, 145);<br />
    g.drawString("Avg.", 570,145);<br />
    //set up light grey horz lines to make it easier to read the values<br />
    g.setColor(Color.LIGHT_GRAY);<br />
    g.drawLine(30, 30, 600, 30);//100%<br />
    g.drawLine(30, 40, 600, 40);//90%<br />
    g.drawLine(30, 50, 600, 50);//80%<br />
    g.drawLine(30, 60, 600, 60);//70%<br />
    g.drawLine(30, 70, 600, 70);//60%<br />
    g.drawLine(30, 80, 600, 80);//50%<br />
    g.drawLine(30, 90, 600, 90);//40%<br />
    g.drawLine(30, 100, 600, 100);//30%<br />
    g.drawLine(30, 110, 600, 110);//20%<br />
    g.drawLine(30, 120, 600, 120);//10%<br />
    int x; //this will be used to move the starting point <br />
    x = 35; //initialize to 35 for the first bar<br />
    g.setColor(Color.BLACK);<br />
    for (int i = 0; i<3;i++)<br />
    {<br />
    for (int j = 0;j<10;j++)<br />
    {<br />
    if (testScores[i][j] == testMin) g.setColor(Color.RED); //red is bad - lowest score
    else if(testScores[i][j] == testMax[i]) g.setColor(Color.GREEN);//green is good
    g.fillRect(x,30 + 100 - testScores[i][j], 10, testScores[i][j]);//after drawing, set the color back to the default, black
    g.setColor(Color.BLACK);
    x = x + 15; //this will move the horz position for each of the 10 scores
    } //this ends the inner loop, i
    g.setColor(Color.CYAN);
    g.fillRect(x,30 + 100 - testAvg[i], 20, testAvg[i]);//this will print the avg twice as wide
    x = x + 40; //nice wide buffer to separate each group of tests the extra 40 at the end will not affect anything
    } //ends outter loop, i }
    } // end method paintComponent
    // } // end class DrawChart
    }//ends paintComponent method
    } //End of main method
    } //End of class

    jeff_cia wrote:
    Any thoughts on how to pass the values?Again, I can't read your code, and I doubt anyone else can. I can only give you the generic recommendation that if the data doesn't change you have setters in the class that needs to receive the data and getters in the class that's producing the data. If the data does change dynamically, then you'll probably want to use the Observable design pattern or something similar, something easy to do in Swing.

  • How to pass value standard program to Workflow after than to call Transaction

    Hi Experts..
        While We are Cancel any PO in Me29n, it will Pass values(Like reason for cancel With PO No) and Send a mail (User name whose reject the cancel against Release of PO No) in workflow inbox(workplace) After than getting a mail any particular User, they will See the Message of  Purchase  order against  Canceled. After then they will double click on that message it will trigger ME29N Tcode with the particular PO.
            Using with Badi in Me29N we have to Passed  Values and sent a Mail in work place but When  Double click on Message I Dont Know HOw to Call ME29N in work place....
         Cancel Po in Me29N-->WORK PLACE --> Double click on message,will call ME29N
       So, please help me how to i can Rectified this.
    Regards,
    kumar

    hi Kumar
    BUS2012 is a business object, see it in tcode SWO1.
    You can try blow code:
    INCLUDE <CNTN01>.
    DATA: OBJ TYPE SWC_OBJECT.
    DATA: PO_ITEMS TYPE TABLE OF BAPIEKPOC.
    DATA: PURCHASEORDER     TYPE     BAPIEKKO-PO_NUMBER VALUE '4500000004'.
    SWC_CONTAINER CONTAINER.
    SWC_CREATE_OBJECT OBJ 'BUS2012' ''.
    SWC_CREATE_CONTAINER CONTAINER.
    SWC_SET_ELEMENT CONTAINER 'NotificationType' 'S1'.
    SWC_SET_ELEMENT CONTAINER 'PurchaseOrder' PURCHASEORDER.
    SWC_CALL_METHOD OBJ 'Display' CONTAINER.  " call method 'Display' show ME29N.
    Infact, you can achieve all your requirment in workflow, don`t need implement BADI.
    The trigger event is event 'rejection_start' in BUS2012. Create a user decision(which will show in workplace) and create a task bounding the 'Display' method of BUS2012.
    There are so many detail content in scn or wiki. thanks.
    hope can help you.
    Regards,
    Archer

  • Pass value to desktop transaction shortcut

    Hi experts,
    I have created the desktop shortcut for transaction VA03.
    And I am calling this shortcut from another system(JAVA).
    Can I pass values during call to this shortcut.
    regards,
    Gopan

    Hi Roberto,
    I have found your replay on of forum regarding FEB_BADI for FF_5 transaction.
    We have implemented the FEB_BADI to change the GL account at runtime based on the business rules. The document posting is happening as per the requirement but the out put of FF_5 is not reflecting the GL account changes made in BADI.
    Have to come across this scenario.
    Appreciate your help on this.
    Thanks,
    Venkat Bomma

  • Background Job pass value

    Hi, I am calling a Background job in my program. I am using JOB_OPEN, JOB_SUBMIT and JOB_CLOSE FM to start a job. My need is to pass a value to the job program(job program doesnt have any selection screen values). Is their any way without creating variants each time to pass value to it.
    Please advice.....

    Hello,
    You can first use  JOB_OPEN which returns job number. Then build ranges or parameters to use SUBMIT to call the program.
    Eg: SUBMIT RM06BB20 AND RETURN
          WITH S_EKGRP IN R_EKGRP
          WITH S_EKORG IN R_EKORG
          WITH S_FLIEF IN R_FLIEF
          WITH S_KONNR IN R_KONNR
          USER sy-uname VIA JOB w_jobname
          NUMBER w_job_number.
    Now use JOB_CLOSE.
    Thanks,
    Venu

  • Passing values between adf application and web services

    hi i have a situation where i have jsff page which got username,surname,lastname,email i what to pass this value to my webservices how can i do that. this is how i create my webservicesright click viewControler->web services->web services Data Control
    i what to pass the value to webservices workflow i already have a screen in my workflow now i what to pass the adf application values to that webservices am in jdeveloper 11.1.1.6.0
    i try this
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.start_user_details}"
                                        type="action"/>
              </af:inputText>

    i make my webservices to pass values
    <af:inputText simple="true"
                            required="#{bindings.Username.hints.mandatory}"
                            columns="#{bindings.Username.hints.displayWidth}"
                            maximumLength="#{bindings.Username.hints.precision}"
                            shortDesc="#{bindings.Username.hints.tooltip}" id="it1"
                            value="#{bindings.Username.inputValue}">
                <f:validator binding="#{bindings.Username.validator}"/>
                <af:setPropertyListener from="#{bindings.Username.inputValue}"
                                        to="#{bindings.approveUser_username}"
                                        type="action"/>
              </af:inputText>
    but am geting error reference approveUser_username not found

  • Passing values from a FORM to another FORM

    Hi,
    I have to pass values from FORM "A" to FORM "B". What is the best way to do this?\
    Can I use a GLOBAL variable?
    Thanks,
    Marc.

    I think he meant the global namespace.
    You set a :global_your_name_here to a value and that value is available in your entire application. See the help file section on the global namespace for more information.
    Forms parameters are parameters that you form picks up from the outside when it starts. The calling entity must supply them in the URL or they will be set to null. You set them up in the object navigator in the Parameters node.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • Passing values from javascript in pop up window to parent jsp

    Hi
    I am trying to pass values from a pop up window to the main window that popped this child window , with the idea to have the parent window refresh itself with value from pop up window.But the values are not going through.I do a request on the hidden variable but when the parent
    jsp refreshes , the variable is still null...
    The following is the code i have .
    Parent jsp:a.jsp
    <form name='summary'>
    <input type=hidden name=customerid value="">
    <input type="button" class="textButton" name="action" value="customerlist" onClick="javascript:openWin('b.jsp','800','350')">
    <script>
    function openWin(loc, w, h) {
    var newWin = window.openloc,"HTML",'dependent=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width=' + w + ',height=' + h);
    newWin.window.focus();
    </SCRIPT>
    <%
    String optionVal = request.getParameter("customerid");%>
    var user = "<%= optionVal%>";
    </form>
    child jsp- b.jsp (pop up window)
    <script>
    function closer(){
    var val = document.formname.id.selected.value;
    window.opener.document.summary.customerid.value = val;
    window.opener.location.reload();
    </script>
    <form name = formname>
    <input type="text" name="id" value = ''>
    <input type="button" class="textButton" value="select"
    onClick="closer();window.close();">
    </form>
    Any ideas on what i am missing
    Thanks
    Arn

    use window.opener.document.forms[0].filedname.value = 'value u need to set'

  • Passing Value from Crystal Report (special function) to Business View parameter

    Friends,
                 Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
    Eg : CurrentCEUsername (func in crystal report)-- gives login user  which i should pass to parameter in a Business view (used in the same report).
    Will be able to explain more if required.
    Thanks in Advance,
    Bharath

    I guess you got the picture wrong.  User_id is not a report_level parameter .
    In Data Foundation, below query is used..
    select Acc_Number, Account_Group,User_id  from Accounts where user_id={?User_id}
    where in {?User_id}  is the BV parameter...
    The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
    How do i pass the CurrentCEUsername to {?User_id}
    Value should ve CurrentCEusername always. so that query will be
    select Acc_Number, Account_Group,User_id  from Accounts where user_id=CurrentCEusername
    It will restrict the data pulled from DB to BV .. right?

  • How to avoid popup & pass value dynamically in 'F4IF_FIELD_VALUE_REQUEST' ?

    Hello Experts,
    I am trying to test usage of f4 help function module.
    We want to dynamically pass values from remote machines into the given input parameters of a Given Search help and receive the output into a table (no dialogs required .. so no pop ups )
    I wrote a test program to just test if we can really do that at runtime ?
    This program pops up the window of search help First I want to surpress that window and Second I have no clue
    ( How to pass the input parameters as value eg. 20 to a given field as we pass manually )
    Can some one suggest something here ?
    REPORT  ZTEST_F4_TEST.
    data lt_return TYPE TABLE OF DDSHRETVAL.
    data ls_return TYPE DDSHRETVAL.
    data lt_return_ddic TYPE TABLE OF zDDSHRETVAL.
    data ls_return_ddic TYPE zDDSHRETVAL.
    PARAMETERS ptable type tabname.
    PARAMETERS pfield type fieldname.
    PARAMETERS pshelp type SHLPNAMe.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
      EXPORTING
        tabname                   = ptable
        fieldname                 = pfield
        SEARCHHELP                = pshelp
    *   SHLPPARAM                 = ' '
    *   DYNPPROG                  = ' '
    *   DYNPNR                    = ' '
    *   DYNPROFIELD               = ' '
    *   STEPL                     = 0
    *    VALUE                     = ' '
        MULTIPLE_CHOICE           = 'X'
        DISPLAY                   = 'F'
        SUPPRESS_RECORDLIST       = 'X'
    *   CALLBACK_PROGRAM          = ' '
    *   CALLBACK_FORM             = ' '
    *   SELECTION_SCREEN          = ' '
    * IMPORTING
    *   USER_RESET                =
    TABLES
       RETURN_TAB                = lt_return
    * EXCEPTIONS
    *   FIELD_NOT_FOUND           = 1
    *   NO_HELP_FOR_FIELD         = 2
    *   INCONSISTENT_HELP         = 3
    *   NO_VALUES_FOUND           = 4
    *   OTHERS                    = 5
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    data lv_count type i.
    delete lt_return where fieldname <> pfield.
    sort lt_return by fieldval.
    delete ADJACENT DUPLICATES FROM lt_return COMPARING fieldval.

    Hello Sim,
    We will be exposing the Input parameters and Output lists of the SAP Search helps (simple search helps only) as input output of a Webservice.
    So I need to understand how can we exploit the SAP Search Helps ?
    What function modules can take these inputs as structures  and can provide the output in form of a table ?
    Regards,
    Ravi

  • Pass value

    Hi,
    I want to pass value of kromosom which is an int array to myValue which is int. How to cast the kromosom?
    myValue = kromosom;

    I want to pass value of kromosom which is an int
    array to myValue which is int. How to cast the
    kromosom?Just out of curiosity. How did you expect that to be possible? You have an array of many ints and now you want to squeeze all of them into just one int?
    Or do you want to read one int from the array and assign it to an int variable? This is how you read the first one,
    myValue = kromosom[0];

  • Pass value from Java to Perl

    Anyone knows how to pass value from Java to Perl program?

    Did you write the perl program? Can you change it? Or are you trying to interface to something that already exists? This will limit your options, of course.
    Anyway the first option is simple. The java program does this:
    System.out.println("This is a line of input.");The perl program does this:
    while(<>)and in that block, $_ is assigned to each line of input.
    Then you can invoke both like this:
    $ java MyJavaProgram | perl MyPerlProgram.pl

  • Pass Value from Excel to custom program

    Hello,
    I want to pass value from Excel to Custom Program being called in the Custom Integrator and i am using the Import in the Importer section but it is not getting passed.
    Please advise and i am on R12.1.3.
    Thanks

    Pl do not post duplicates - Concurrent Program Parameter

Maybe you are looking for

  • Remove Mac OSX installation from external disk

    Hello, I installed an extra max osx installation on an external disk. So i can starup from my HD or my ext disk depending on my start up disk choice. Everything works fine. Unfortunately i installed it in a partition with a lot off backup files in it

  • I cannot open raw file shot with canon 20d. I get an error message.

    I recently used a 50d camera and shot in raw +jpeg. Downloaded into computer. Was able to view jpeg but was unable to view raw version.At first I attributed this to needing software update for 50d. I brought up a raw file taken with a 20d and the sam

  • How do I change export settings in Compressor 4?

    In the old compressor, I could export a movie and choose all my own settings pertaining to size, quality, streaming or not, keyframe rate, data rate, compression type, aspect ratio, etc..., same was true of the old Final Cut.  So in making FCP X, the

  • What is the serial on the iphone used for?

    What is the serial on the iphone used for? I ask because im seeling my iphone to someone and they asked me for it. Why do they need it? Should i give it to them?

  • Can I fix a video I received that is very pixilated .....blocky

    Can I fix a video I received as a message that came very pixelated......blocky....the video can't be resent, they deleted it by mistake on their end