Accumulated values from rpsco up to specific period and year

I am develping report with parameters: period and year.
Then my programs need to accumulate values in table rpsco from the period 01 year 1800 and up to period and year in my selection.
Any suggestions?

Hi Prasad,
This would be happening if you have put the user entry variable in the global filter of your query.
As a result the complete data set is restrcted to get the data only for one month.
Please use the variable for user entry month in a selection and not globally.
-Vikram

Similar Messages

  • Inactive Item report to show Item bought within a specific period and not sold within a specific period by whse and have stock

    Hi
    I'm trying to come up with query report to show Inactive Item bought within a specific period and not sold within a specific period by whse and have stock
    The report should show  Item Number, Item Name ,Item cost,Retail Price [Based on a price list], Qty in Whse, Last Purchase Date, Last sale Date etc.
    e.g item bought between 2011-2013 and have not been sold with the same date range or the last 12 months.
    Regards
    Brian Ndunda.

    Hi,
    Try this query:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate] FROM OITM T0  left JOIN INV1 T1 ON T0.ItemCode = T1.ItemCode left JOIN OINV T2 ON T1.DocEntry = T2.DocEntry WHERE T1.[Quantity] is null and  T0.[OnHand] >0 GROUP BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate]
    Thanks & Regards,
    Nagarajan

  • Find the difference between two dates for the specific month and year

    Hi,
    I have two dates, start date is 30/12/2012 and end date is 04/01/2013. Using datediff I found the difference of days between two dates. But I find the no of days in January 2013. ie output is 4 instead of 6. I input month and year to find the no of days
    for that date. In this case I input Jan 2013. How can I sql this ?

    I don't understand how most of the answers provided here not analytically solving the problem with many cases possible.
    First let me understand you:
    You have 2 dates range and you want to calculate day range for specific month and year between the original date range.
    declare @for_month int = 1 --January
    declare @for_year int = 2013
    declare @StartDate date = '2012-12-20'
    declare @EndDate date = '2013-01-04'
    SELECT
    CASE
    WHEN (DATEPART(MONTH, @StartDate) = @for_month and DATEPART(MONTH, @EndDate) = @for_month) and ((DATEPART(YEAR, @StartDate) = @for_year or DATEPART(YEAR, @EndDate) = @for_year)) THEN
    DATEDIFF(DAY, @StartDate,@EndDate)
    WHEN (@StartDate < cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (@EndDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, DATEADD(MONTH, DATEDIFF(MONTH, -1, @EndDate)-1, 0),@EndDate)
    WHEN (@EndDate > cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) and (@StartDate between (cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) and (cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date))) THEN
    DATEDIFF(DAY, @StartDate,DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, @StartDate) + 1, 0))) + 1
    WHEN ((DATEDIFF(DAY, @StartDate, cast(DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date)) + 1, 0)) as date)) >= 0) and (DATEDIFF(DAY, cast(CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as date), @EndDate) >= 0)) THEN
    DATEDIFF(DAY, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime), DATEADD(d, -1, DATEADD(m, DATEDIFF(m, 0, cast( CONVERT(varchar(4), @for_year) + '-' + CONVERT(varchar(2), @for_month) + '-01' as datetime)) + 1, 0))) + 1
    ELSE
    0
    END as [DD]
    I don't know how you calculate day range between 01/01/2013 and 04/01/2013
    is 4, it is actually is 3 but if that is the case, you can add 1 from the condition.

  • Determining last date if period and year are given

    hi,
    what is the code if  the period and year are given and  to  print the  last date of that particular period and
    year.

    suppos period is perio = '2006002'
    Data sdate type sy-datum.
    Data edate type sy-datum.
    mm = perio+5(2).
    yy   = perio+0(4).
      concatenate yy mm '01' into sdate.
      call function 'SG_PS_GET_LAST_DAY_OF_MONTH'
        exporting
          day_in            = sdate
        importing
          last_day_of_month = edate.
    edate is your lst day of that period month.
    \[removed by moderator\]
    Regards
    Rajesh
    Edited by: Jan Stallkamp on Jul 21, 2008 2:35 PM

  • TVARV - Dynamic Period and Year

    Hi,
    A standard FI report is executed weekly in batch job. The selection screen for the report has the following fields: Period and Year. We need the following:
    1) A report variant that takes the current period and current year
    2) A report variant that takes the previous period and current year
    I know that it is possible to have dynamic dates (Current / date calculations), but is it possible with period and year as well ina  variant?
    What do the variables in TVARV table "SAP_SCMA_PERIOD" and "SAP_SCMA_FISC_YEAR" do?
    Since this is a standard report, what could be the solution?
    Awaiting response.

    Hi Anuritha,
    Did you able to solve this problem. Basically I am also in the same situation, so it would be great help if you suggest me what needs to be done exactely !
    How did you manage the variants SAP_SCMA_FISC_YEAR & SAP_SCMA_PERIOD in TVARV table to work accordengly.
    Looking forward for your reply.
    --Thanks
    Pankaj

  • FM to find the first & last date of month when we enter period and year

    Hi Gurus,
               I required an urgent need.
               I want a function module which gives me first and the last date of the month when I enter the period and the year.
               Reply me as soon as possible.
    Regards,
    Sagar

    Try this coding...  enter    02/2007 into the selection screen field and execute
    report zrich_0001 .
    data: start_date type sy-datum,
          end_date type sy-datum.
    parameters: p_spbup type spbup.
    start-of-selection.
      start_date = p_spbup.
      start_date+6(2) = '01'.
      call function 'LAST_DAY_OF_MONTHS'
           exporting
                day_in            = start_date
           importing
                last_day_of_month = end_date.
      write:/ start_date, end_date.
    Regards,
    Rich Heilman

  • How to extract Attribute Value from a DBC file with LabWindows and NI-XNET library

    Hi all,
    For my application, i would like to feed my LabWindows CVI Test program with data extracted from *.dbc file (created by another team under Vector CANdb++).
    These files contains all CAN frame definition
    and also some extra information added to :
    Message level,
    Signal level,
    Network Level
    These extra information are set by using specific ATTRIBUTE DEFINITIONS - FUNCTIONALITY  under Vector CANdb++
    The opening of the DataBase works under NI-XNET DataBase Editor as in LabWindows using: nxdbOpenDatabase ( ... )
    No attribute seems be displayable under the NI-XNET DataBase Editor (it's not a problem for me)
    Now, how, using the NI-XNET API and CVI, be able to extract these specially created attributes ?
    Thanks in advance.
    PS : In attached picture, a new attribute called Test_NI, connected to a message
    Attachments:
    EX1.jpg ‏36 KB

    Hi Damien, 
    To answer your question on whether the XNET API on LabWindows/CVI allows you to gain access to the custom attributes in a DBC file, this is not a supported feature. The DBC format is proprietary from Vector. Also, custom attributes are different for all customers and manufacturers. Those two put together make it really difficult for NI to access them with an API that will be standard and reliable.
    We do support common customer attributes for cyclic frames. This is from page 4-278 in the XNET Hardware and Software Manual : 
    "If you are using a CANdb (.dbc) database, this property is an optional attribute in the file. If NI-XNET finds an attribute named GenMsgSendType, that attribute is the default value of this property. If the GenMsgSendType attribute begins with cyclic, this property's default value is Cyclic Data; otherwise, it is Event Data. If the CANdb file does not use the GenMsgSendType attribute, this property uses a default value of Event Data, which you can change in your application. "
    Link to the manual : http://digital.ni.com/manuals.nsf/websearch/32FCF9A42CFD324E8625760E00625940
    Could you  explain us the goal of this attribute, and what you need it on your application.
    Thanks,
    Christophe S.
    FSE East of France І Certified LabVIEW Associate Developer І National Instruments France

  • Create a procedure to return period and year value

    Hi All,
    I have a requirement to develop a procedure
    which will accept any date and return the two values period, yr
    as follows
    if date is 1st oct 2011 then period should be 1 yr should be 2012
    if date is 1st nov 2011 then period should be 2 yr should be 2012
    if date is 1st dec 2011 then period should be 3 yr should be 2012
    if date is 1st jan 2012 then period should be 4 yr should be 2012
    if date is 1st feb 2012 then period should be 5 yr should be 2012
    if date is 1st mar 2012 then period should be 6 yr should be 2012
    if date is 1st apr 2012 then period should be 7 yr should be 2012
    if date is 1st may 2012 then period should be 8 yr should be 2012
    if date is 1st june 2012 then period should be 9 yr should be 2012
    if date is 1st july 2012 then period should be 10 yr should be 2012
    if date is 1st aug2012 then period should be 11 yr should be 2012
    if date is 1st sept 2012 then period should be 12 yr should be 2012
    if date is 1stoct 2012 then period should be 1 yr should be 2013
    if date is 1st nov 2012 then period should be 2 yr should be 2013
    if date is 1st dec 2012 then period should be 3 yr should be 2013
    and so on
    Please tell me how can i achive these through a plsql function
    Thanks in anticipation.

    CREATE OR REPLACE Function testdate
    ( INDATE IN DATE )
    RETURN number
    IS
    PERIOD number;
    YR NUMBER;
    BEGIN
    &INDATE
    select
    case
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Oct'
    then '1'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy') FROM DUAL)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Nov'
    then '2'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy') FROM DUAL)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Dec'
    then '3'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy') FROM DUAL)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Jan'
    then '4'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy') FROM DUAL)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Feb'
    then '5' AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Mar'
    then '6' AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Apr'
    then '7' AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='May'
    then '8' AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Jun'
    then '9' AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Jul'
    then '10'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Aug'
    then '11'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    when TO_CHAR(TO_DATE(INDATE,'DD-MON-YYYY'),'MON')='Sep'
    then '12'AND (SELECT to_char(add_months(to_date(INDATE),12),'yyyy')from dual)
    ELSE NULL
    end
    into PERIOD
    FROM DUAL;
    RETURN PERIOD;
    RETURN YR;
    end TESTDATE;
    EXCEPTION
    WHEN OTHERS THEN DBMS_OUTPUT.PUT_LINE('NO OUTPUT');
    END;
    **Mark a Person Correct or helpful if his answer is as such**
    Edited by: Anshul Sharma on Feb 15, 2012 8:46 PM
    Edited by: Anshul Sharma on Feb 21, 2012 12:47 AM

  • How to get the query values from the url in a servlet and pass them to jsp

    ok..this is the situation...
    all applications are routed through a login page...
    so if we have a url like www.abc.com/appA/login?param1=A&param2=B , the query string must be passed onto a servlet(which is invoked before the login page is displayed)..the servlet must process the query string and then should pass all those values(as hidden values) to the login jsp..then user enters username and pswd, then there should be another servlet which takes all the hidden values of jsp and also username and pswd, authenticates the user and sends the control back to that particular application along with the hidden values...
    so i need help on how to parse the query string from the original url in the servlet, pass it out to jsp, and then pass it back to the servlet and back to the original application...damnn...any help would be greatly appreciated...thanks

    ok..this is the situation...Sounds like you have a bad design on your hands.
    You're going to send passwords in a GET request as clear text? Nice security there.
    Why not start with basic security and work your way up?
    %

  • Return values from a popup to calling form and refresh page?

    Hi,
    Following thread Re: Popup report window from a PL/SQL proc.? I'm trying to pass the record values(checkbox + record values) to the parent windows (the retruned value is always a unique record). I was able to set the variables values with a procedure ( I vierfied in session state), but I'm unable to pass these values to the parent form and then refreshing the page. I tried the following thread without success : Refresh from Popup page
    Any hint would be appreciated.
    Thanks

    Andy,
    My page has the following query for the report region (PL/sql function):
    DECLARE
    v_string VARCHAR2(2000);
    vc VARCHAR2(2):=chr(39);
    BEGIN
    v_string:= 'SELECT '||vc||'<img src="/i//edit_big2.gif" onClick="f_payment_clrRow(this)"></img>'||vc||' Clr, '||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(1,NULL,'||vc||'SELECT TRX_DESCRIPTION, TRX_ID FROM WTL_V_TRX_PAYMENTS WHERE TRX_EFFECT='''||V_Effect||''' '||vc||',''onchange=f_payment_trx_paymode(this); '',''NO'') Description,'||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(2,NULL,'||vc||'SELECT DESCRIPTION, ID_VALUE FROM GEN_PR_TYPES_ENTITY '||vc||',null,''NO'') Bank,'||
    ' APEX_ITEM.TEXT(3,NULL,10,10,''ondblclick=f_callMyPopup(this);'') Document,'||
    ' APEX_ITEM.TEXT(4,NULL,10,15) Account,'||
    ' APEX_ITEM.SELECT_LIST_FROM_QUERY(5,NULL,'||vc||'SELECT ID_VALUE, ID_VALUE FROM WTL_V_TRX_CURRENCY'||vc||',''onchange=f_payment_currency_rate(this);'',''NO'') Currency,'||
    ' APEX_ITEM.TEXT(6,NULL,15,20,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Amount, '||
    ' APEX_ITEM.TEXT(7,NULL, 5, 8,''onblur=f_payment_trx_amount(this); style="text-align:right;" '') Rate, '||
    ' APEX_ITEM.TEXT(8,NULL,15,20,''readonly style="text-align:right;" '') Trx_Amount, '||
    ' APEX_ITEM.HIDDEN (9,NULL), '||
    ' APEX_ITEM.HIDDEN (10,NULL) '||
    ' from dual';
    return v_string;
    As u can see, the 3rd item uses the ondblclick to call the js function f_callMyPopup.
    My js function in the header of the page is below:
    <script>
    function f_open_lov2(page, request)
    { var url;
    url = 'f?p='+$x('pFlowId').value+':'+page+':'+$x('pInstance').value+':'+request;
    w = open(url,"winLov","Scrollbars=1,resizable=1,width=500,height=600");
    if (w.opener == null)
    w.opener = self;
    w.focus();
    function f_callMyPopup(x)
    var f01;
    var p = x.parentNode;
    while (p.tagName != "TR")
    { p = p.parentNode;}
    var inputs = p.getElementsByTagName("INPUT");
    var zz;
    for (zz = 0; zz < inputs.length; zz++)
    {if (inputs[zz].name = 'f01')
    {f01 = inputs[zz].id;}
    f_open_lov2(17,97);// I sent 97 as an example.
    </script>
    and the js in the custom popup page (17) has the following function which is executed when the user selects one of the rows using a button.
    <script>
    function f_return_value(cstring)
    opener.document.getElementById("f03").value = cstring;
    close();
    </script>
    When f_return_value is executed, the selected value is pasted in the first row of the parent page.
    Sorry , i don't know what do you mean when you say to pass the id to the custom popup page.
    Thanks again,
    Fernando
    Edited by: fnovilloes on 16/09/2009 12:01 PM
    Edited by: fnovilloes on 16/09/2009 03:56 PM
    Edited by: fnovilloes on 16/09/2009 03:59 PM

  • Getting value from Function stored in a schema and Watching the value of objects

    hi
    i'd like to display a labelA which is from a query -> (SELECT NAME FROM TABLE1 WHERE NAME = GetA). GetA is a function which I created in SchemaA. GetA returns a varchar2. In this case.. how can i do that ?
    should i write the PL/SQL in the format trigger of this labelA ? if yes, then what should i write in the PL/SQL format trigger ? or should i create another query in Data Model ?
    And how do get hold of this labelA's value(or the result returned by the query) in the parameter form?
    And lastly is there a way to trace the value of some report objects ?
    should i use SRW.MESSAGE ? to print out the 'watched' value ? or any other alternatives ?
    what is the url that takes me to learn all these ?
    I got this error "REP-1401: 'beforepform': Fatal PL/SQL error occurred." when i initialize the bind variable to a function (GetA)stored in Schema A ---> :P_A := GetA in the before_parameter_form of report trigger;
    anything wrong with the above assignment ?
    are there any difference between stored procedure like function, package in the database and those in in PL/SQL Library of report builder ???
    null

    hi
    i'd like to display a labelA which is from a query -> (SELECT NAME FROM TABLE1 WHERE NAME = GetA). GetA is a function which I created in SchemaA. GetA returns a varchar2. In this case.. how can i do that ?
    should i write the PL/SQL in the format trigger of this labelA ? if yes, then what should i write in the PL/SQL format trigger ? or should i create another query in Data Model ?
    And how do get hold of this labelA's value(or the result returned by the query) in the parameter form?
    And lastly is there a way to trace the value of some report objects ?
    should i use SRW.MESSAGE ? to print out the 'watched' value ? or any other alternatives ?
    what is the url that takes me to learn all these ?
    I got this error "REP-1401: 'beforepform': Fatal PL/SQL error occurred." when i initialize the bind variable to a function (GetA)stored in Schema A ---> :P_A := GetA in the before_parameter_form of report trigger;
    anything wrong with the above assignment ?
    are there any difference between stored procedure like function, package in the database and those in in PL/SQL Library of report builder ???
    null

  • [Forum FAQ] SharePoint 2013: Extracting values from a multi-value enabled lookup column and merge values to a multi-value enabled column

    For some business requirements, users want to extract values from a multi-value enabled lookup column
    and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
    add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
    How to extract values from a multi-value enabled lookup column and add items to another list based
    on each separate value using SharePoint Designer 2013.
    Important actions: Loop Shape; Utility Actions
    Three scenarios
    Things to note
    Steps to create Workflow
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013.
    Important actions: Call HTTP Web Service; Build Dictionary
    Things to note
    Steps to create Workflow
    How to
    extract values from a multi-value enabled lookup column and
    add items to another list based on each separate value using SharePoint Designer 2013.
    For example, they have three lists as below. They want to
    extract values from the Destinations column
    in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
    Lookup1:
    Title (Single line of text)
    Lookup2:
    Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Important action
    1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
    Loops must also conform to the following rules:
    Loops must be within a stage, and stages cannot be within a loop.
    Steps may be within a loop.
    Loops may have only one entry and one exit point.
    2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
    Three scenarios
    We need to loop through the string returned from the look up column and look for commas. There are three
    scenarios:
    1.  No comma but string is non-empty so there is only one country.
    2.  At least one comma so there is at least two or more countries to loop.
    3.  In the loop we have consumed all the commas so we have found the last country. 
    Things to note
    There are two things to note:
    1. "Find string in string (output to Variable:index)"  will return -1 if doesn't find
    the searched for string.
    2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
    field as  "Lookup Values, Comma Delimited".
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup2.
    Add conditions and actions:
    Start the workflow automatically when an item is created.
    Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
    See the below in workflow History List:
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013
    For example, they have three lists as below. They want to find duplicate values in the Title column in
    Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
    Lookup1:
    Title (Single line of text)
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Lookup2:
    Title (Single line of text), Test (Single line of text).
    Important actions
    "Call HTTP Web Service"
    action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
    is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
    “Build Dictionary"
    action:
    The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
    The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
    The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
    Things to note
    The
    HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
    Use Get
    d/results(0)/Id form
    Variable: ResponseContent (Output to
    Variable: maxid) to get the Max ID.
    Use Set
    Variable: minid to Current List:ID to get the Min ID.
    Use Copy from
    Variable: destianation , starting at
    1 (Output to
    Variable: destianation) to remove the space.
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Test (Single line of text).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup3.
    Add a new "Build Dictionary" action
    to define the http request header:
    Add a Call HTTP Web Serviceaction, click on
    this and paste your http request.
    To associate the
    RequestHeader variable, select the Call action property,
    set the
    RequestHeaders property to
    RequestHeader:
    In the Call action, click on
    response and associate the response to a new
    variable: ResponseContent (of type Dictionary).
    After the Call action add Get item from Dictionary action to get the Max ID.
    Add Set Workflow Variable action to get the Min ID.
    Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
    Create item in Lookup2.
    The final Stage should look like this:
    Start the workflow automatically when an item is created.
    Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
    See the below in workflow History List:
    References
    SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
    http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
    Workflow actions quick reference (SharePoint 2013 Workflow platform):
    http://msdn.microsoft.com/en-us/library/jj164026.aspx
    Understanding Dictionary actions in SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
    Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

  • How to get the Open Order Qty value from Transaction Code RWBE?

    Hello,
    Recently I have a program that needs to extract the value of Open Order Qty value from RWBE.
    My specific steps are as follows:
    - I go to tcode <b>RWBE</b>
    - I select the <b>material and plant</b>
    - I tick the checbox for <b>"Also select special stocks"</b> and <b>"Also select stock commitments"</b>
    - I execute the program double click one of the rows for the <b>Unrestricted Use coulmn</b> and view the <b>Open Order Qty</b>.
    My question is how is this particlar variable attained? I tried Ekbe and the ELIKZ feild from EKPO and I still cant seem to get the right value.
    Hope to hear from you soon.
    Thank you and good day.

    check with FM :
    CALL FUNCTION 'MB_ADD_PURCHASE_ORDER_QUANTITY'
           EXPORTING
              x_matnr = t_matnr-matnr         " TGA/4.6 Erw. Lot
              x_meins = t_matnr-basme         " TGA/4.6 Erw. Lot
                x_matnr = prt_matnr-matnr  " TGA/4.6 Erw. Lot
                x_meins = prt_matnr-basme  " TGA/4.6 Erw. Lot
                x_elikz = space
                x_loekz = space
           TABLES
                xtab    = xtab
                xwerks  = r_werks.
    above fm will get open order qty for given material in po

  • How to get a value from User's AD attribute and Display it on a SharePoint page ?

    Forum,
    We have a specific attribute in Active Directory for every single user. Meaning: In our Active Directory we have an attribute e.g. "UserType" and the value of this attribute is different from user to another.
    Requirement: I need to display the value of this attribute on the SharePoint page - How to do so?
    I don't think using the User Profile properties is the way to go. So, Could you please guide me on how to use C# or JavaScript to retrieve the value from AD attribute of each user and show it on the SharePoint site?
    Thanks for your inputs !

    Using C# or javascript to authenticate the user to AD to read the property directly will be very difficult. Creating a custom user profile property and adding a sync from AD to that property is definitely the easiest way to do what you are describing.
     Once its in User Profiles there are lots of samples on how to add it to the page.  
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Values from event and from bindings are not same in valueChangeListener

    Hi, in a valueChangeListener method of an af:selectOneChoice component I get
    the new value from the event with:
    valueChangeEvent.getNewValue()
    and from bindings with:
    JsfUtils.getExpressionValue("#{bindings.Parflag.inputValue}")
    But the value from bindings is the previous value set in UI.
    Why is this happening? In ADF Page lifecycle manual it is referenced that “update model values” face runs before “invoke application” so why the value in bindings is the previous value?
    Any comment will be helpful,
    Thanks.

    That’s right.
    Could anyone comment why a valueChangeListener is regarder as a
    Validation Process and not an Application Action that commits business changes.
    I mean if I need a validator I can put an f:validator to the component and that’s all.
    The immediate attribute didn’t change the result, the method is run before bindings set.

Maybe you are looking for

  • How to restore my iPod Touch 5 in order to be used using iTunes

    Hello, I have tried to restore my iPod using iTunes. the iPod touch screen is showing an USB cord pointing to iTunes icon. after 17 minutes, iTunes is telling me this: iTunes has detected that you iPod is in a recuperation mode. You must restore this

  • Error message 00 344 : No batch input data for the screen SAPMF02D 0324

    Hi Experts, We are working with SAP CRM 4.0 and SAP R/3 6.20 We have an important number of BDocs (type 'BUPA_MAIN' ) in status  E02 with the error message 00 344 : 'No batch input data for the screen SAPMF02D 0324'. Can any one help us to explain th

  • ALSA headphone not working

    I have searched some threads but haven't come to anything - perhaps my sound card is different. So I recently installed Arch on a new PC (Everex gPC3). The headphone port in the front of the computer does not work. In alsamixer, the headphone column

  • How to change organizational unit .

    Hi Experts, I have a rule in which some responsibilities are defined. Could anyone please tell me how to change the values in the Rule like I want to change the persons listed there to someone else. Also if there is any way to change the organization

  • A Strange "List" in Reminders

    I have an iPhone 4 which I recently updated to iOS5. Everything went fine. However, when I first opened "Reminders" I had a strange List that appeared. I have "Completed" and "Reminders" but on a page in between these I have what looks like a long al