Reg : Logical DB's

hi,
Iam using LDB : PSJ
My question is : How can we restrict the data when we are using LDB's?
  or more clearly
Can we add any field to the selection screen Of LDB's?I mean can we change the own selection screen of LDB's and add a new filed?
regards
vaja

Hi
HR Report category is only for HR LDBs PNP PNPCE and not for anyother LDBs as far as I know.
You can include parameters and select-options in the report and they will appear at the bottom of the standard selection-screen.
I have not worked on the LDB you mentioned but can tell you how data is fetched/filtered for PNP LDB. It may be helpful.
For the criteria entered on the selection screen, ldb checks if any of the record satisfy the condition for the PERNR . If yes, irrespective of the date range it selects all the records pertaining to the PERNR into the internal tables for the infotypes declared. You need to use macros to select the required record and if you don't want to process any record, use REJECT.
Always check if all the selection-screen criteria is being satisfied using IF conditions or CHECK when you are using ldbs.
Regards
Navneet

Similar Messages

  • Reg Logical System Name

    Hi,
    We have ECC 6.0 PROD and ECC 6.0 QAS System.
    WE have different logical system names for both the systems
    But when we refreshed the PROD to QAS , we have to run the BDLS transcation to change the logical System name(since we are having different logical System name)
    But BDLs is taking more than 40 hours.
    Please let me know  , whether logical system name can be the same throughtout the landscape or not
    In other words , is there any side effects if i have same  logical system name for QAS and PROD

    I've been researching the same issue.  I found the following
    "Is it necessary to change the logical system names?
    Because of the two reasons mentioned above (long runtime of transaction BDLS and possible inconsistencies), it may be desirable, to avoid the renaming of logical systems during system copy.
    Whether logical systems names need to be changed at all after a system copy depends on the type of the target system: "
    This is from SAP System Landscape Copy for SAP Net Weaver and my SAP Solutions
    Best Practice for Solution Management
    I found it searching for sap bdls alternative
    Hope this helps.  I'm continuing my search.

  • Reg : Logic for Report

    Hi ,
    I would like to know one logic for preparing functional specification for one MM report. This report should fetch all materials that are below safety stock.
    Please help me.

    HI,
    The logic is you take the current unresticted stock of a material from MARD table, field name is LABST.now you check for the safety stock of the particular in MARC table Field name-EISBE.
    Now compare the current stock with the safety stock,generate a report for the materials whose present stock is less than the safety stock.
    for this requirement safety stock should be maintained in the material master,other wise your report will not work.
    Regards,
    velu

  • Reg logic required for selection-screen.

    Hi,
    i have one requirement
    on selection screen 2 radio button
    1 for service
    2 for account
    Parameter      FILE     LOCALFILE     Filename
    If the radiobutton ACCOUNT is selected the default name for file will be:
         ‘Rev_acc_com_&system_time_stamp&.dat’
    Elseif the radiobutton SERVICE is selected the default name for file will be:
         ‘Rev_srv_com_&system_time_stamp&.dat’
    some body can give the logic for this.

    take the following solution
    data: tstamp type TZNTSTMPS.
    data: filename type string.
    call function 'CONVERT_INTO_TIMESTAMP'
    exporting
       I_DATLO  = sy-datum
       I_TIMLO   = sy-uzeit
    importing
       E_TIMESTAMP = tstamp.
    if ACCOUNT is selected then
    concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
    else if SERVICE is selected then
    concatenate 'Rev_srv_com_' tstamp '.dat' into filename.
    the filename variable will be containing ur required file name..
    reward points if useful....

  • Reg-Logic for Query!

    Hi All,
    In my application, there is an requirement for generating Autogen Sequence in two ways.
    First Way: Using Autogen button.
    For Ex: If the old symbol: ABCDEF00, the next Autogen sequence should be i.e, new symbol: ABCDEG00 .
    Similarly if the symbol has old symbol:zzzzz00 new symbol should be AAAAA00.
    As of now my logic is working perfectly accordingly to the above scenario.
    Note: We will be changing only first 5 characters and last two digits I am appending as 00.
    Second Way: Manually there can enter the symbol.
    The problem I am facing in second method, since there can enter/ create a symbol using Alphanumeric.
    For Ex: old Symbol: ABCD100, the next will be ABCD200 and soon till ABCD900.. Once the symbol ends with 9 then next sequence is replacing with some special characters as ABCD:00
    Note: Symbol should not accept any special characters. If the symbol ABCD900 then next should be ABCD000. ‘9’ should be replaced with ‘0’ and soon. My logic will not work for alphanumeric.
    Can anyone help me out my logic should accept both characters as well as numeric’s.
    Following is the logic which currently i am using
    DECLARE
    v_symb_code VARCHAR2(7);
    new_sym_code VARCHAR2(7);
    v_count NUMBER;
    v_auto_count NUMBER;
    symb_code_new VARCHAR2(7);
    BEGIN
    SELECT COUNT(*) INTO v_auto_count FROM T_AUTOGEN_SYMBOL;
    IF v_auto_count=0 THEN
    SELECT symb_code INTO v_symb_code FROM t_symbol WHERE SYMB_MODIFIED_DATE=(SELECT MAX(SYMB_MODIFIED_DATE) FROM t_symbol) AND ROWNUM=1;
    ELSE
    SELECT ATGS_SYMB_CODE INTO v_symb_code FROM T_AUTOGEN_SYMBOL;
    END IF;
    LOOP
    SELECT
    -- 1st digit of new value
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1),'Z','A',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1),'A','B','B','C','C','D','D','E','E','F','F','G','G','H','H','I','I','J','J','K','K','L','L','M','M','N','N','O','O','P','P','Q','Q','R','R','S','S','T','T','U','U','V','V','W','W','X','X','Y','Y','Z',
    CHR(ASCII(SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1))+1))),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),1,1))
    ||
    -- 2nd digit of new value
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1),'Z','A',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1),'A','B','B','C','C','D','D','E','E','F','F','G','G','H','H','I','I','J','J','K','K','L','L','M','M','N','N','O','O','P','P','Q','Q','R','R','S','S','T','T','U','U','V','V','W','W','X','X','Y','Y','Z',
    CHR(ASCII(SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1))+1))),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),2,1))
    ||
    -- 3rd digit of new value
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1),'Z','A',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1),'A','B','B','C','C','D','D','E','E','F','F','G','G','H','H','I','I','J','J','K','K','L','L','M','M','N','N','O','O','P','P','Q','Q','R','R','S','S','T','T','U','U','V','V','W','W','X','X','Y','Y','Z',
    CHR(ASCII(SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1))+1))),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1)),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),3,1))
    ||
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'Z',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1),'Z','A',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1),'A','B','B','C','C','D','D','E','E','F','F','G','G','H','H','I','I','J','J','K','K','L','L','M','M','N','N','O','O','P','P','Q','Q','R','R','S','S','T','T','U','U','V','V','W','W','X','X','Y','Y','Z',
    CHR(ASCII(SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1))+1))),
    SUBSTR(SUBSTR (v_symb_code, 1, 5),4,1))
    ||
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'Z','A',
    DECODE(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1),'A','B','B','C','C','D','D','E','E','F','F','G','G','H','H','I','I','J','J','K','K','L','L','M','M','N','N','O','O','P','P','Q','Q','R','R','S','S','T','T','U','U','V','V','W','W','X','X','Y','Y','Z',
    CHR(ASCII(SUBSTR(SUBSTR (v_symb_code, 1, 5),5,1))+1)))||'00' INTO new_sym_code
    FROM dual;
    symb_code_new := UPPER(new_sym_code);
    SELECT COUNT(*) INTO v_count FROM t_symbol WHERE symb_code=symb_code_new AND ROWNUM<2;
    /*IF v_count<1 THEN
    SELECT COUNT(*) INTO v_count FROM t_symbol_wip WHERE symb_code=symb_code_new AND ROWNUM<2;
    END IF;
    DELETE FROM T_AUTOGEN_SYMBOL;
    INSERT INTO T_AUTOGEN_SYMBOL(ATGS_SYMB_CODE,ATGS_MODIFIED_BY,ATGS_MODIFIED_DATE) VALUES(symb_code_new,v('APP_USER'),SYSDATE); */
    EXIT WHEN v_count <1;
    v_symb_code:=symb_code_new;
    DBMS_OUTPUT.PUT_LINE(v_symb_code);
    END LOOP;
    :P39_SYMBOL := symb_code_new;
    END;

    I'd use a slightly different approach with the same end result: use and store numbers instead of this "Autogen sequence". When you use a number, you can easily add 1 or subtract 1. You probably only need that string for display. So use a function like below:
    SQL> create function number2weirdstring (p_num in number) return varchar2
      2  as
      3    --
      4    -- The string looks like this AAAAA00.
      5    -- Define for each A what the acceptable characters can be
      6    -- For instance I'm defining them to accept [a-z] and [A-Z]
      7    -- And they are mapped to [0-25] and [26-51]. This leads to
      8    -- 52^5 possible combinations.
      9    --
    10    l_character1 varchar2(1);
    11    l_character2 varchar2(1);
    12    l_character3 varchar2(1);
    13    l_character4 varchar2(1);
    14    l_character5 varchar2(1);
    15  begin
    16    l_character5 := chr( case when mod(p_num,52)                    < 26 then 97 else 39 end + mod(p_num,52) );
    17    l_character4 := chr( case when mod(trunc(p_num/52),52)          < 26 then 97 else 39 end + mod(trunc(p_num/52),52) );
    18    l_character3 := chr( case when mod(trunc(p_num/52/52),52)       < 26 then 97 else 39 end + mod(trunc(p_num/52/52),52) );
    19    l_character2 := chr( case when mod(trunc(p_num/52/52/52),52)    < 26 then 97 else 39 end + mod(trunc(p_num/52/52/52),52) );
    20    l_character1 := chr( case when mod(trunc(p_num/52/52/52/52),52) < 26 then 97 else 39 end + mod(trunc(p_num/52/52/52/52),52) );
    21    return l_character1 || l_character2 || l_character3 || l_character4 || l_character5 || '00';
    22  end number2weirdstring;
    23  /
    Functie is aangemaakt.And to show how the function works:
    SQL> select number2weirdstring(0)
      2       , number2weirdstring(25)
      3       , number2weirdstring(26)
      4       , number2weirdstring(51)
      5       , number2weirdstring(52)
      6       , number2weirdstring(52*52-1)
      7       , number2weirdstring(52*52)
      8       , number2weirdstring(12893571)
      9    from dual
    10  /
    NUMBER2WEIRDSTRING(0)
    NUMBER2WEIRDSTRING(25)
    NUMBER2WEIRDSTRING(26)
    NUMBER2WEIRDSTRING(51)
    NUMBER2WEIRDSTRING(52)
    NUMBER2WEIRDSTRING(52*52-1)
    NUMBER2WEIRDSTRING(52*52)
    NUMBER2WEIRDSTRING(12893571)
    aaaaa00
    aaaaz00
    aaaaA00
    aaaaZ00
    aaaba00
    aaaZZ00
    aabaa00
    bNKrp00
    1 rij is geselecteerd.You only need to modify the function to accept the characters you want. But hopefully this example will get you started.
    Regards,
    Rob.

  • Reg logical schema

    Hi ,
    I had created the interface when the logical schema was X , but now the same schema is changed to Y .
    correct logical schema has been mapped , now the interface is also showing logical schema as Y .
    But now when I am executing the interface , I am getting the below error
    java.lang.NullPointerException
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatPopSourceSet(SnpGeneratorSQLCIT.java:7740)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPopCollectionBuild(SnpGeneratorSQLCIT.java:7527)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.preComputePop(SnpGeneratorSQLCIT.java:7469)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.treatJobPop(SnpGeneratorSQLCIT.java:7379)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPopInternal(SnpGeneratorSQLCIT.java:3168)
         at com.sunopsis.dwg.codeinterpretor.SnpGeneratorSQLCIT.mainGenPop(SnpGeneratorSQLCIT.java:3124)
         at com.sunopsis.graphical.dialog.SnpsDialogExecution.doInterfaceExecuter(SnpsDialogExecution.java:478)
         at oracle.odi.ui.action.SnpsPopupActionExecuteHandler.actionPerformed(SnpsPopupActionExecuteHandler.java:141)
         at oracle.odi.ui.SnpsFcpActionAdapter.handleEvent(SnpsFcpActionAdapter.java:253)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:529)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:884)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:501)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
         at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:273)
         at java.awt.Component.processMouseEvent(Component.java:6288)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
         at java.awt.Component.processEvent(Component.java:6053)
         at java.awt.Container.processEvent(Container.java:2041)
         at java.awt.Component.dispatchEventImpl(Component.java:4651)
         at java.awt.Container.dispatchEventImpl(Container.java:2099)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
         at java.awt.Container.dispatchEventImpl(Container.java:2085)
         at java.awt.Window.dispatchEventImpl(Window.java:2478)
         at java.awt.Component.dispatchEvent(Component.java:4481)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
         at java.awt.EventQueue.access$000(EventQueue.java:84)
         at java.awt.EventQueue$1.run(EventQueue.java:602)
         at java.awt.EventQueue$1.run(EventQueue.java:600)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
         at java.awt.EventQueue$2.run(EventQueue.java:616)
         at java.awt.EventQueue$2.run(EventQueue.java:614)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Is there any way by which I don't have to bring the source again and don't have recreate the mapping .
    Regards
    Bhoopendra

    Hi
    I got the same error. I think, it happened because the model was lost (with needed code). I've replaced Target Datastore in Interface and the error has gone.

  • Reg logical checks..

    Hi,
    can any one tel me how to do logical checks in BDC ???? this was an interview question...
    Regards,
    ABC XYZ

    Hi,
    You can use IF statement or CASE statement.
    Regards,
    Ferry Lianto

  • Reg: Logical Path names..

    How to maintain the logical file path names. Please provide any step by step approach for creating a logical file path.

    Hi,
      Have a look at this link... i guess it explains what you are looking for...
    http://help.sap.com/saphelp_47x200/helpdata/en/8d/3e4ec2462a11d189000000e8323d3a/content.htm
    Regards

  • Reg logic:iterate Urgent

    Hi All,
    Having doubt in <logic:iterate>... I am using the following for getting two ArrayList into a JSP using form bean.
    Im having table consisting of 5 column
    element1 element2 element3 element4 element5
    In this element2 is a list which display value in the label and element3 is another list which display the values in combo box.
    I need to know how to iterate two different list in the same row.... using <logic:iterate>...
    Pls Help me..
    Thanks in Advance.. For providing the solution..

    You have two ArrayList to be iterated in the same row but in defferent column.
    <td>
    <logic:iterate id="list1" name="ArraList1">
    <bean:write name="list1" property="propertyname"/>
    </logic:iterate>
    </td>
    <td>
    <html:select property="">
    <logic:iterate id="list2" name="ArraList2">
    <html:option value=""><bean:write name="list2" property="propertyname"/></html:option>
    </logic:iterate>
    </html:select>
    </td>

  • Reg:Logic required

    Hi ,
    We are working on one development for this we are using exit:MV45AFZZ and written code on it.The logic we have written is when ever the field FPLT:FAKSP is blank at contarct level ,then it should trigger an intimation mail .First time it is triggering mail and even when we go go second and third time and make some change other than field FAKSK again it is triggering mail.How to stop further mails ,it should trigger only when we make change in field FAKSK only .Pls help.
    Regards,
    Sash .
    Use meaningful subject for your future questions
    Edited by: Vijay Babu Dudla on Feb 26, 2009 7:54 AM

    Hi ,
    The requirement is when ever the user removes a billing block at filed FPLT:FAKSP then it should trigger a mail .Logic we have taken is :Pass the VBAK:VBELN to FPLA:VBELN and pick the FPLNR then send it to FPLT and check FAKSP ,if it is space then trigger a mail .Pls suggest exit and required coding.
    Thnaking you in advance.
    With Regards,
    Sash.

  • Reg : Logic Needed

    Hi Friends,
    Can any one please provide logic for this.This will help me lot
    My Input structure below mentioned :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_DisputeCaseSAP xmlns:ns0="http://hnwl.com/INFFI00041/DisputeCase">
    <Records>
    <Invo>BVN0001</Invoice_No>
    <Invdate>20101025</Inv_IssueDate>
    <Due_Date>20101125</Due_Date>
    </Records>
    <Records>
    <Invoice_No>BVN0001</Invoice_No>
    <Inv_IssueDate>20101025</Inv_IssueDate>
    <Due_Date>20101124</Due_Date>
    </Records>
    Condition i need to follow is : 1.If Invo is >10 no need to send that record and if Invo repeats i have to send only latest Due_Date records to target.
    Please let me know suitable way to solve this
    Thanks,
    Dinesh

    Hi,
    Chk this:
    Create one UDF:
    Context Type:All values of a queue.
    Input will be 3 varaibale: var1, var2, var3
    int a=0;
    String mm ="";
    for(int i=0;i<var1.length;i++)
    for(int j=0;j<var2.length;j++)
    if(var1[ i ].equals(var2[j]))  ("i" and "j" in square brackets)
    a=a+1;
    mm= mm + ";" +var3[j];
    String delimiter =";" ;
    String[] temp = mm.split(delimiter);
    Arrays.sort(temp,Collections.reverseOrder());
    result.addValue(temp[0]);
    a=0;
    mm="";
    Mapping:
    Invoice_No->removeContext->sort->splitByValue(valueChange)->collapseContext->removeContext->
    Invoice_No->removeContext-->  -UDF----->Target.
    Due_Date->removeConetxt----
    >
    Thanks
    Amit

  • Reg logic to get sales docu no

    i need logic to get the highest value and corresponding sales order no placed by the customer belonging
    to a credit control area for previous and current fiscal year.

    Hi Orlang,
    You have VBELN (Sales Order No) in MSEG table as KDAUF also. check once
    You can use MBLNR field available in both table to join them
    SELECT c~mblnr c~kdauf c~kdpos
           INTO CORRESPONDING FIELDS OF TABLE itab
           FROM  mseg AS c
             INNER JOIN mkpf AS p ON p~mblnr   = c~mblnr.
    Cheerz
    Ram
    Edited by: Ramchander Krishnamraju on Nov 19, 2009 7:18 AM

  • REG : Logic to define the default purchaser in Purchase org

    Hi SRM Gurus,
    Need your help and suggestion in one issue.
    In Standard system default Operational purchaser information responsible for processing shopping cart is not available.
    The requirement is to determine the Default Operational Purchaser, as in standard SRM system Auto PO's will be created using RFC user, which means that, there is no buyers who has the ownership of the POs' and its changes. Hence this scenario is used to assign the ownership of the Auto PO's, since we are not using sourcing cockpit, so all POs' will be Auto PO's.
    We dont have the Sourcing Cockpit scenario, so we thought of two possibilities :
    1. By marking the lead buyer as the head of the organization ( A check box at the basic data tab at user level).
              Or
    2. By maintaining a custom attribute at the buyer user level (Through SM30 view T77OMATTR).
    Now I need suggestion from you all as if we use the first option the workload distribution would be high as each and every PO from a particular Pgrp would land into a buyers inbox and it wont be good as per the business perspective.
    Please suggest me the solution for this issue.
    Thanks,
    Aakash Awasthi.

    Hello,
    Aakash Awasthi wrote:
    Yes I got that, but I wanted to know ,if I would select the default purchaser By marking the lead buyer as the head of the organization ( A check box at the basic data tab at user level).
    Is there any way to retrieve it via code or any BADI... as I will get the default purch grp from the badi BBP_PGRP_FIND... but not the purchaser.
    Create a specific attribute to manage this.
    Then, check user's attributes with user context lo_user_context = /sapsrm/cl_pdo_factory_user=>get_buffered_user_context( )
    Aakash Awasthi wrote:
    Also we want a way to change the default purchaser once we populate it in the custom field...as we have a req that requistioner can change the default purchaser at the item level to reduce the work load.
    This is a CUF, so change its value... Do not understand your problem.
    Regards.
    Laurent.

  • Reg: Logic for context change

    Dear friends,
    I have a scnario where i need to  uploade the sumary of financial entries.
    For every one line item i need to create a target side as 2 line item for debit and credit entry.
    I achived this by using  duplicatesubtree.
    Now the issue is  for all the entries there should only one debit entry by summing all the line item amout and all the credit item entries.
    Even this is achived by using the context change at the sum function.
    In fico we can uploade only 900 line item not more that. for this i have make use of counter and udf to resolve this.
    But now for context change i need to genarate one debit entry for every 899 credit entrries(input line items).
    It mean for 899 input item sum to be taken in to one debit line item at target in the duplicatesubtree
    For this i have a udf it gives a counter change after 899 line items.
    Now on this change how should i change the context..for sum and create the debit item after every 899.
    I have refered this thread .
    [context change  in message mapping]
    Regards
    Vijay

    Hi Vijay,
    To get Sum
    Source item (0 .. outbound)
               line1 (0..1)
               line2 (0..1)
               line3 (0..1)
               line4 (0..1)
               line5 (0..1)
               line6 (0..1)
    Now map Line6 --> (RemoveContext) u will get all values ===> Write UDF1 ===> Map to first element under Item1
    ===> Write UDF2 ===> Map to first element under Item1
    UDF1
    public void CreditSum(String[] a,ResultList result,Container container){
    float count = a.length;
    float c = count/2;
    int d = (int)c;
    int sum=0;
    String Sum_str = " ";
    for(int i=0;i<=d-1;i++)
    sum = sum+Integer.parseInt(a<i>);
    Sum_str =Integer.toString(sum);
    result.addValue(Sum_str);
    UDF2
    public void Credit2Sum(String[] a,ResultList result,Container container){
       //write your code here
        //write your code here
    float count = a.length;
    float c = count/2;
    int d = (int)c;
    int sum=0;
    String Sum_str = " ";
    for(int i=d;i<=count-1;i++)
    sum = sum+Integer.parseInt(a<i>);
    Sum_str =Integer.toString(sum);
    result.addValue(Sum_str);
    Thx
    Srini

  • Reg setting up Logical database

    Hi,
    I need to set up logical file system for generating Idoc. can any one help me in setting up logical file system and how to config the idoc to that location.
    I appreciate your help.
    waiting to hear
    Thanks,
    Kisu

    Hi,
    I am not sure I understood your requirement. Your heading said "Reg setting up Logical database". But in your description you are asking about "logical file system". Then you say IDOC configuration. Can you please explain what you want to do?
    You can create logical file using transaction FILE. If you are talking about RFC Destinations for Idocs(not logical file system), then you are talking about SM59. If you are looking for configuring logical systems for ALE distribution or workflow configuration, then you do that in customizing transaction SPRO under "Basis Components>ALE>Logical Systems--> Define Logical Systems".
    Please let us know which one it is.
    Srinivas

Maybe you are looking for