Variables pass in place of subty in rp_provide statement

Hi,
     can i pass  variables in place of SUBTY in rp_provide ... Macro?
If yes ... How can ?
regards,
Jyoti

Hi,
Check this code.
Infotypes: 0006.
Tables: pernr.
data C(4).
C = '1'.
start-of-selection.
get pernr.
RP_PROVIDE_FROM_LAST P0006 C PN-BEGDA PN-ENDDA.
write:/ pernr-pernr, p0006-subty.
end-of-selection.
Hope this helps.
Thanks,
Sarika.

Similar Messages

  • What is the difference between using a global variable,passing a valuee and using a reference?

    I have created a project that consists of several VIs.  Only the main VI has a front panel and the others perform functions.  The function VIs are dependent on controls on the main VI's front panel.  I have several ways of passing the value of the controls.  One is to use a global variable and just place it on the dependent VIs.  Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly.  My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
    What are the advantages/disadvantages of these options?
    -Stephen

    5thGen wrote:
    I have created a project that consists of several VIs.  Only the main VI has a front panel and the others perform functions.  The function VIs are dependent on controls on the main VI's front panel.  I have several ways of passing the value of the controls. 
    1) One is to use a global variable and just place it on the dependent VIs.
    2) Another option is to strictly connect the terminal from the control to a VI connector block and pass the value directly. 
    3) My last option is to create a reference of the control and reference it inside the dependent VIs, but this would also require connections to be made to the VI block.
    What are the advantages/disadvantages of these options?
    -Stephen
    1) Globals are evil and introduce race conditions.
    2) The sub-VI only get the value when it was called and updates that occur while the sub-VI is runing are not sensed by the sub-VI
    3) This uses property node "value" or "value signaling" both of which run the user interface thread which is single-threaded and you incur a thread swap hit to performance. You also have a potential for race conditions.
    The are various methods for sharing dat to/from sub-VI which include Queues and Action Engines.
    I hope that hleps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Can a system-variable passed in the The syntax of the FoRM statement

    The syntax of the FoRM statement is
    FORM {TABLES <t1><t2><t3>......} {USING <U1><U2><U3>.....} {CHANGING <C1><C2><C3>.....}
    ENDFORM .
    As all these are vvariables can a system-variable passed here
    ---if not why?

    Hi,
      Why do you need to pass the system variable to the form at the first place ? It would not be a good programming practice to pass a system variable to the form.
    Hope this helps..
    Thanks in advance,
    Harikrishna.

  • Passing Business place in BAPI_ACC_DOCUMENT_POST in ACCOUNTGL  table.

    Dear  Experts,
      I am working on BAPI_ACC_DOCUMENT_POST for posting the accounting documents which includes G/Ls and Vendor payments. BAPI is ready and working fine, but we want to pass the Business Place with GL, as it allows iin FB01, i have searched though the ACCOUNTGL but i didn't find any field for this or like BUPLA.
    Any suggestion ... How to pass Business Place field in ACCOUNTGL...?

    Hi Prassad,
    I've faced the same issue here; we were facing an error while posting to accoountgl, because AR & AP are working fine, so what we've come up with and worked is;
    Append the businessplace into BAPIACGL09 structure and i should look like this;
    wl_accountgl         TYPE bapiacgl09,
    wl_accountgl-businessplace = wl_file_i-local_neg.
    in bapiacgl09 structure
    .APPEND ZZST_BUSINESS ...
    BUSINESSPLACE ACPI_BRANCH CHAR 4 0 ...
    This was the ABAPer solution here in the company, i hope it helps.

  • Variable uses and placement

    I'm new to PL/SQL and am trying to learn about variable valid uses/placement (any pointers to any docs is appreciated...)
    All of the docs I've looked only mention declaration and assignment not valid placement.
    When I use an input parameter to a cursor placement matters . I just don't understand why...
    example... using the value "SCOTT" as an input parm to the c10 cursor replaces the "str_in" variable correctly and works...
    1 declare
    2 cursor c10(str_in IN varchar2) is
    3 select username
    4 from dba_users where username=str_in ;
    5 begin
    6 for r_c10 in c10('SCOTT') loop
    7 dbms_output.put_line(r_c10.username);
    8 end loop;
    9* end;
    SQL> /
    SCOTT
    PL/SQL procedure successfully completed.
    However, when trying to replace another "word" it won't resolve the reference...
    example... attempting to replace the from table_name as an input parm, no go...
    1 declare
    2 cursor c10(str_in IN varchar2) is
    3 select username
    4 from str_in where username='SCOTT' ;
    5 begin
    6 for r_c10 in c10('DBA_USERS') loop
    7 dbms_output.put_line(r_c10.username);
    8 end loop;
    9* end;
    SQL> /
    from str_in where username='SCOTT' ;
    ERROR at line 4:
    ORA-06550: line 4, column 6:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 3, column 1:
    PL/SQL: SQL Statement ignored
    ORA-06550: line 7, column 26:
    PLS-00364: loop index variable 'R_C10' use is invalid
    ORA-06550: line 7, column 5:
    PL/SQL: Statement ignored
    Why can't it resolve the string ?
    Any help is appreciated
    dumb newbie...

    Hi Jeff,
    Welcome to the forum !
    The query that is executed is always the same irrespective of the input parameter as this is STATIC sql.
    Only the variables can be input parameters.
    If you want the table name to change based on the input, you need to use dynamic sql.
    Can you explain what you are trying to do with this program?
    Thanks,
    Rajesh.
    --you can include the code in before and after the statement to preserve spaces.
    Edited by: Rajesh Chamarthi on Oct 22, 2009 11:02 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Pass table name as parameter in prepared Statement

    Can I pass table name as parameter in prepared Statement
    for example
    select * from ? where name =?
    when i use setString method for passing parameters this method append single colon before and after of this parameter but table name should be send with out colon as SQL Spec.
    I have another way to make sql query in programing but i have a case where i have limitation of that thing so please tell me is it possible with prepared Statment SetXXx methods or not ?
    Thanks
    Haroon Idrees.

    haroonob wrote:
    I know ? is use for data only my question is this way to pass table name as parameterI assume you mean "how can I do it?" As I have already answered "is this the way?" with no.
    Well, I would say (ugly as it is) String concatenation, or stored procedures.

  • How to place a WAP into Maintenance State in Cisco WCS

    I presently have a WAP offline and WCS continually alerts that the WAP Radio interfaces are down.
    I am logged into WCS with Admin priveleges, but if I select the WAP and opt to place the WAP into Maintenance State so as to suppress the alarms, WCS reports back "Permission Denied - You do not have privileges for the requested operation."
    The WAP is operating LWAPP
    What is causing the denial ? Any suggestions please.
    Thanks
    David

    Hi,
    The problem has been identified and is a bug in the latest version of WCS being 7.0.172.0
    According the Cisco, the Bug is to be fix in the next version of WCS due for release later this year pending code updates for the controllers making them compatible with the new version of WCS. Details of the Bug can be found here :
    http://tools.cisco.com/Support/BugToolKit/search/getBugDetails.do?method=fetchBugDetails&bugId=CSCtq83879
    Anyway, to place the WAP in Maintenance State, you will need to change your WCS AAA settings via Administration>>AAA Mode and set to Local. Proceed then via a second IE session to log into WCS using the Root username and Password and place the WAP in Maintenance State. Following placing the WAP in Maintenance State, change your AAA Mode back to TACACS+ or RADIUS with fallback to local.
    Regards

  • How to pass variable in the place of numeric value?

    Hi,
    my requirement is i want to validate the selection screen block width.
    I have created tabbed selection screen.
    i need in which variable tab lengh values will be stored
    ex:-
    selection-screen: begin of tabbed block MYTAB for 10 lines,
                      TAB (20) button1 USER-COMMAND push1,
                      TAB (20) button2 USER-COMMAND push2,
    end of block MYTAB.
    here in the above code i want to pass variable instead of directly numeric value as 10.
    because based on some conditions i want to change the number of lines.
    how to do this...plz urgent, i will give all the points to anybody who given good answer.
    Thanks in Advance,
    venkat n

    Hi!
    And that's why God created macros.
    DEFINE seltab.
    selection-screen: begin of tabbed block MYTAB for &1 lines,
    TAB (20) button1 USER-COMMAND push1,
    TAB (20) button2 USER-COMMAND push2,
    end of block MYTAB.
    END-OF-DEFINITION.
    DATA: lv_lines TYPE i VALUE 10.
    seltab lv_lines.
    Regards
    Tamá

  • How to access variables passed in custom tag body

    I am developing custom tags in my application. I need to pass some variables from the .jsp file into tag file. I want these to be passed as body of the tag rather than as tag parameter. It seems the correct syntax for this is:
    <myTags:display> someVariable </myTags:display>
    Question 1: Can I not use this as: <myTags:display someVariable /> Since this tag will be used at many places in the jsp, I dont want to write myTags:display twice for every usage.
    Question 2:
    I want to call the tags from main.jsp like:
    <% String var1 = "Display Me Please"; %>
    <myTags:display var1 />I want the tag file to do some processing on the value stored in var1. I've written the following code in tag file, display.tag:
    <jsp:doBody var="theBody" />
    <% Object obj = (Object) request.getAttribute ("theBody"); %>This code snippet gives me access to obj which has the value "var1". Now how do I access the value that is contained in "var1".
    Edited by: coolkomal on Jun 3, 2009 7:45 AM

    coolkomal wrote:
    I am developing custom tags in my application. I need to pass some variables from the .jsp file into tag file. I want these to be passed as body of the tag rather than as tag parameter. It seems the correct syntax for this is:
    <myTags:display> someVariable </myTags:display>
    Question 1: Can I not use this as: <myTags:display someVariable /> Since this tag will be used at many places in the jsp, I dont want to write myTags:display twice for every usage.
    <myTags:display var="<%=someVariable>"/> is a valid syntax for performing respective action of that variable. You can also use EL to pass the variable ${someVariable} provided the custom tag provide support for EL.
    >
    Question 2:
    I want to call the tags from main.jsp like:
    <% String var1 = "Display Me Please"; %>
    <myTags:display var1 />
    Just ensure that you declare all the related variables in Main.jsp and statically include Main.jsp in your jsp such that you do the checking
    [http://java.sun.com/products/jsp/tags/11/syntaxref117.html]
    >
    I want the tag file to do some processing on the value stored in var1. I've written the following code in tag file, display.tag:
    <jsp:doBody var="theBody" />
    <% Object obj = (Object) request.getAttribute ("theBody"); %>This code snippet gives me access to obj which has the value "var1". Now how do I access the value that is contained in "var1".Can be done provided you code it the right way. Start learning basics of how to create custom taglibraries to gain more knowledge on how things can be managed.
    [http://java.sun.com/javaee/5/docs/tutorial/doc/bnalj.html]

  • Variable passed in movie param

    I am having a troublesome issue that seriously affects a
    paying client. Any help is greatly appreciated.
    1. Built a FLASH 8 movie that has three frames. Each Frame
    is a single form.
    2. The movie param lists the SWF followed by a single
    parameter (<param name="movie" value="
    http://jyourchis.sc35.info/registrationForm.swf?formName=MailingList"/>)
    3 The first frame has Actionscript that is stop() and then
    gotoAndPlay(formName); [in reality, I am first converting to
    lowercase]
    As I test from various machines, the FIRST time visiting the
    HTML page only the first frame appears (sometimes it is part of the
    page). A Reload of the browser then operates correctly.
    I am pointing to this with (eventually) almost a hundred
    different pages. That is why it is in another domain.
    I have the parameter "allowScriptAccess" set to "always".
    Thanks in advance

    Hi,
      Why do you need to pass the system variable to the form at the first place ? It would not be a good programming practice to pass a system variable to the form.
    Hope this helps..
    Thanks in advance,
    Harikrishna.

  • Variable passing to an email activity

    Hi,
    In my simple process flow I have:
    START--------TRANSFORMATION (procedure call)--------EMAIL ACTIVITY--------END
    My procedure has an output parameter (which consists of an email address).
    In the transformation, the output parameter is passed into a variable VAR1.
    In my EMAIL activity, the TO_ADDRESS parameter is assigned VAR1.
    My problem is, when I validate the processflow it comes up with the error:
    "VLD-10034: Parameter TO_ADDRESS is bound to variable VAR1, but VAR1 has no default value set. For a processflow to be valid the bound parameter or variable should have a default value."
    So I assigned the variable VAR1 a default value (I entered a valid email address), the processflow validates successfully, but when I run it, it fails with an error.
    It's the variable that's causing a problem as when I hard-code an email address in the TO_ADDRESS parameter it runs without a problem.
    Do you have any ideas why the variable is failing when a default value is set?
    Thanks for any replies
    Ansel

    Hi Armands
    I managed to sort this one out.
    I stripped out the transformation from the processflow to simplify it as much as possible.
    So I had:
    START-------- EMAIL ACTIVITY--------END
    The problem was where it was forcing me to enter a default value for the variable VAR1 (where VAR1 was assigned to the TO_ADDRESS parameter in the email activity).
    I entered an email address as the default value in VAR1, and it failed. So I changed the value to 'aaa', and it failed.
    But it DIDN'T fail when I entered '1' (even though the variable is of a string type).
    So it's working now.
    Thank you for taking the time to try to understand my problem.
    Ansel

  • Value of user variable passed in sender/receiver queries

    Hello experts,
    I have to BEx queries, one sender and one receiver, I linked them in RSBBS
    The problem is that I have InfoObject 0FISCPER as a user variable in the sender query and I fill it with for example "avril 2010" but in the receiver query 0FISCPER is also a user variable but it always receive "#" as value, other values are passed without problems
    Regards,
    Thibault Jacobs

    HI Thibault,
    Try making the User input variable a Mandatory one and then Check ,it shud work.
    Hope u have made the necessary settings in RSBBS and activated it.
    Rgds
    SVU123

  • How to get name of variable passed to method

    How can I get the name of the variable that's passed into a method, in the method?
    for instance: the following code prints an array to a text file, and includes the name of the array in the name of hte text file. So, to call it, I have to do this:
    printarray(myArray, "myArray")
    so that the text "myArray" gets passed in & used in teh fileNM output.
    This is inelegant, and I'd like to just call it like this:
    printarray(myArray)
    and have the method extract that name.
    void printarray(String printstuff[], String arrayname) throws Exception
        String fileNM = "arrayprint_" + arrayname +".txt";
        FileWriter printme = new FileWriter(fileNM);
        String newline = System.getProperty("line.separator");
            String tab = "\t";
        for (int i = 0; i<printstuff.length; i++)
            printme.write(i + tab + printstuff[i]  + newline);
        printme.close();
        } // end printarray

    Let me try to put this in different words and see if I convince you...
    I think you are getting confused between variable names that you use refer a variable within your class and "names" that you associate with a variable based on the data it holds.... In your example
    String[] myArray;here 'myArray' is the name of the reference to the variable printstuff[]. When you call the method
    printarray(myArray) a copy of this reference is passed to that method.
    But you also want to pass another variable that represents the description of the array (which you are referring to as the name). In this case one of the ways of doing this what you had pointed out which is
    printarray(myArray, "myArray");If you don't like this and think its inefficient you should do a bit of reading on the basics of what a variable is, what a reference to a variable etc. Alternativel you can define your own class that convinces you like
    public class MyArray
          private String[] myArray;
          private String myArrayName;
          public MyArray(String myArrayName, String[] myArray)
                      this.myArrayName=  myArrayName;
                      this.myArray = myArray;
          public String[] getArray()
                    return myArray;
          public String getName()
                      return myArrayName;
    }Edited by: deepak_1your.com on 17-Apr-2008 14:12

  • How to check for the variable passed to a function inside a component

    I'm trying to pass a variable to a function inside of a
    component in a conditional statement.
    How to check the existance of this variable inside the
    function so that I can use the right <CFarguments>:
    in aForm.cfm I have:
    <cfinvoke component="#application.cfcroot#.business.Order"
    method="selOrderItems"
    returnvariable="q_OrderItems"
    OrderItemAbbreviation="Min"></cfinvoke>
    <cfset MCompIDs = ValueList(q_OrderItems.OrderItemID)>
    <cfif listFind(MCompIDs,attributes.CompID)>
    <cfset isM = true>
    <cfelse>
    <cfset isM = false>
    </cfif>
    <cfinvoke component="#application.cfcroot#.business.Order"
    method="selOrderItems"
    returnvariable="q_OrderItems"
    OrderItemAbbreviation="SMEnroll"></cfinvoke>
    <cfset SM_CompIDs =
    ValueList(q_OrderItems.OrderItemID)>
    <cfif listFind(SM_CompIDs,attributes.CompID)>
    <cfset isSM = true>
    <cfelse>
    <cfset isSM = false>
    </cfif>
    <CFIF isSM>
    <cfset temppath = frmcreator.buildFrm(isSMFlag=isSM)>
    <CFELSE>
    <cfset temppath = frmcreator.buildFrm(isMFlag=isM)>
    </CFIF>
    On aFormComp.cfc where the function is,
    I checked the existance of isSMFlag this way and I got error
    saying that :
    Context validation error for tag CFARGUMENT.; The tag must be
    nested inside a CFFUNCTION tag.
    How can I properly check the existance of isSMFlag inside the
    function so I can use the right cfarguments?
    <CFFUNCTION NAME="buildFrm" access="public"
    returntype="String" output="No">
    <cfif StructKeyExists(arguments, "isSMFlag")>
    <CFARGUMENT NAME="isSMFlag" REQUIRED="YES"
    TYPE="NUMERIC">
    <cfelse>
    <CFARGUMENT NAME="isMFlag" REQUIRED="YES"
    TYPE="NUMERIC">
    </cfif>
    ........ etc
    </CFFUNCTION>

    <CFFUNCTION NAME="buildFrm" access="public"
    returntype="String"
    output="No">
    <cfif StructKeyExists(arguments, "isSMFlag")>
    <CFARGUMENT NAME="isSMFlag" REQUIRED="YES"
    TYPE="NUMERIC">
    <cfelse>
    <CFARGUMENT NAME="isMFlag" REQUIRED="YES"
    TYPE="NUMERIC">
    </cfif>
    ........ etc
    </CFFUNCTION>
    NOT this way, that is for sure.
    The <cfargument ...> tag is for defining the arguments
    a function
    accepts either optional or not, but they are not required.
    Give this a
    try to see the differences.
    test.cfc
    <cfcomponent>
    <cffunction name="a">
    <cfdump var="#arguments#">
    </cffunction>
    <cffunction name="b">
    <cfargument name="foo">
    <cfargument name="bar">
    <cfdump var="#arguments#>
    </cffunction>
    </cfcomponent>
    test.cfm
    <cfset something = createObject("component","test")>
    <cfoutput>
    #something.a("blue","green")#
    #something.b("blue","green")#
    </cfoutput>
    Not tested or debugged so watch out for typos.

  • Variable passing from sqlplus to linux.

    I have a procedure like (datapump_hr_api), after its completion, I have to grant some grants to user and then create a view which will depend on the datapump_hr_api parameter (TARGET_FIN_HR ). it will generally pass the two username, admin,hr_fin, now I have to connect to Admin and give the grant and then connec to hr and create the views.
    *****datapump_hr_api*****
    create or replace procedure datapump_hr_api(TARGET_FIN_HR_NAME varchar2) is
    h5 NUMBER; -- Data Pump job handle
    job_state VARCHAR2(30); -- To keep track of job state
    sts ku$_Status; -- The status object returned by get_status
    target_admin varchar2
    TARGET_FIN_HR varchar2(32) := TARGET_FIN_HR_NAME;
    SOURCE_FIN_HR varchar2(32);
    dumpfile varchar2(32);
    logfile varchar2(32);
    job_name varchar2(32);
    BEGIN
         select dumpfile,SOURCE_FIN_HR into dumpfile,SOURCE_FIN_HR from source_impdp;
         logfile := TARGET_FIN_HR || '.log' ;
         job_name := TARGET_FIN_HR || '2_job' ;
         h5 := DBMS_DATAPUMP.OPEN('IMPORT','FULL',NULL,job_name);
         DBMS_DATAPUMP.ADD_FILE(h5,dumpfile,'DATA_DIR');
         DBMS_DATAPUMP.ADD_FILE(handle=>h5,filename=>logfile,directory=>'DATA_DIR',
         filetype=>DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
         DBMS_DATAPUMP.METADATA_REMAP(h5,'REMAP_SCHEMA',SOURCE_FIN_HR,TARGET_FIN_HR);
         DBMS_DATAPUMP.METADATA_FILTER(h5,'EXCLUDE_PATH_EXPR','like''%/TABLE/INDEX/STATISTICS/INDEX_STATISTICS''');
         DBMS_DATAPUMP.METADATA_FILTER(h5,'EXCLUDE_PATH_EXPR','like''%/TABLE/STATISTICS/TABLE_STATISTICS''');
         DBMS_DATAPUMP.START_JOB(h5);
    job_state := 'UNDEFINED';
    while (job_state != 'COMPLETED') and (job_state != 'STOPPED') loop
    dbms_datapump.get_status(h5,
    dbms_datapump.ku$_status_job_error +
    dbms_datapump.ku$_status_job_status +
    dbms_datapump.ku$_status_wip,-1,job_state,sts);
    end loop;
    dbms_output.put_line('Job has completed');
    dbms_output.put_line('Final job state = ' || job_state);
    dbms_datapump.detach(h5);
    ----->has to be invoked create_view(TARGET_FIN_HR,Target_admin ),
    END;
    create_view statement:
    create_view: contain
    conn Target_admin/admin
    grant insert to TARGET_FIN_HR.table;
    conn TARGET_FIN_HR/fin_hr
    create view view_name as select * from Target_admin.table;
    ----

    Yes Sir,
    You are right... Your service is not just $200 hundred, it is priceless. I have never been in programming. So I am learning. And as per as "exec immediate" is concerned I have used it(Problem with SQL query sequence and you can c in the previous posting(problem with it is if you have 5 grants and 5 view, what you do). One more thing, I was just thinking if we can developed some thing like sed command does(on linus). It has to just change some table_name and username in a file but the problem was it has to pass the variable to linux and then we have to connect to ssqlplus and then we ahve to again run. I was just thinking to have expert view.
    Is not this forum made for that?
    Message was edited by:
    sanora600

Maybe you are looking for

  • Installing Flash Player on Firefox

    I'm using the most recent Firefox and I noticed that the plugin was no longer there, I then tried several times to install it. The download worked fine and the installer seemed to go though the mototions but when I then checked the plugin list it was

  • Message has error status on outbd. side (error in Moni)

    Hello All, Iam doing soap to idoc scenario, the scenario was working fine since long time....but yesterday we had an issue...we can see the message was sucessfully processed in XI monitor and RWB, but idoc not got created in sap ecc system. when i ch

  • How to find the dependency of a table

    Hi All, how to find all packages or procedure which are using specific table . is there any table where we can go and search . i mean i have table called let say table_A and i want to find in which procedure or package this table will be using . Than

  • Problems with the Diff-Feature

    Hello there, i am new to EMF-Compare and i use it to compare parts of my models. I have enountered a problem with the comparison where there are differences but the compare algorithm cant find them. here are my two models Here is the code i use: ICom

  • CS4 error 1 on (non) start up

    I had to reload the program twice.  I am running Windows Vista 64 bit on an Asus CG5270 with 8 gigs of ram.  I have a Nvidia GEforceGT 220 graphics card with 335.23 latest driver.  Before and after reloading the program I cannot get video in source o