Error in setting the linenum for new expenses document

Hi all,
I have created an add-on procedure to add a new expenses document to a selected service call.  Although the code compiles without any errors, when I go back and check the expenses tab in the service call form, the new document doesnt appear in the expenses grid.  I also checked whether the data was saved into the corresponding SCL2 and SCL4 tables.  The new stock transaction is not saved into the service call.  My current code is:
Public Sub add_StockTransaction(ByVal strGRJobID As String, ByVal srtSTDocNo As String)
        Dim oServiceCall As SAPbobsCOM.ServiceCalls
        Dim oExp As SAPbobsCOM.ServiceCallInventoryExpenses
        Dim bRetVal As Boolean
        Dim errcode As Long
        Dim errmsg As String
        Try
            oServiceCall = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oServiceCalls)
            bRetVal = oServiceCall.GetByKey(strGRJobID)
            If Not bRetVal Then
                SBO_Application.MessageBox("Failed to Retrieve the record.")
                Exit Sub
            End If
            oExp = oServiceCall.Expenses
            oExp.Add()
            oExp.DocumentType = "67"
            oExp.DocumentNumber = strSTDocNo
            oExp.DocEntry = strSTDocNo - 99999
            SBO_Application.MessageBox(oExp.LineNum)
            oExp.SetCurrentLine(oExp.LineNum + 1)
            oExp.StockTransferDirection = 1
            oExp.Add()
            oServiceCall.Update()
            bRetVal = oServiceCall.Update()
            If bRetVal = False Then
                oCompany.GetLastError(errcode, errmsg)
                SBO_Application.MessageBox(errmsg)
            Else
                SBO_Application.MessageBox("Successfully added stock transaction to Service Call.")
            End If
        Catch ex As Exception
            SBO_Application.MessageBox(ex.Message)
        End Try
end sub
I would appreciate any help as I tried so many ways of solving the problem but couldn't find a solution.  Thank you all in advance.

Bingo.... I got it.
Thanks for your hint about the ./.profile. I was setting env variables in .cshrc file and my default shell for "oracle" user was sh.
Then I changed the default shell for oracle user to csh and viola..... it works.
root@zngds1gk # su - oracle
$ id
uid=100(oracle) gid=101(dba)
$ setenv
HOME=/space/oracle
PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
LOGNAME=oracle
HZ=100
TERM=xterm
SHELL=/bin/sh
$ exit
root@zngds1gk # usermod -u 100 -s /bin/csh oracle
root@zngds1gk # su - oracle
zngds1gk%
zngds1gk% setenv
HOME=/space/oracle
PATH=/space/oracle/app/oracle/product/10.2.0/Db_2/bin:/usr/bin:
LOGNAME=oracle
HZ=100
TERM=xterm
SHELL=/bin/csh
zngds1gk% cat .cshrc
umask 022
setenv ORACLE_BASE /space/oracle/app/oracle
setenv ORACLE_SID adm
setenv DISPLAY 47.102.212.108:0.0
setenv ORACLE_HOME /space/oracle/app/oracle/product/10.2.0/Db_2
setenv PATH /space/oracle/app/oracle/product/10.2.0/Db_2/bin:$PATH
And now it works...
Thanks.
~Jayant

Similar Messages

  • Can I set the DocumentType for an XML document? If so how? please help

    Hi,
    I am porting some code from jdom to xerces.
    jdom's document class provides a setDocType(String, String) function to set the DTD for the document.
    Is there anything similar in dom?
    The javadocs only mentions a getDocType() for the document interface in org.w3c.dom.Node interface. Is there any way I can SET the document type (DTD) for a given document object?
    TIA,
    Srinivas.

    In iOS, the spellcheck language follows the keyboard.
    The forum for questions about iOS Pages is at
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How do i set the homepage for new tabs? when i open tabs i would like it to go to google but i cannot find out how to do this.

    when i open a new tab in firefox, it takes to me to a 'fast browser search' page and i would like to set it to open google.co.uk instead :(

    It would seem if your choose "Show my windows and tabs from last time" '''''and''''',
    *when you last closed Firefox, you had no web site open (just a blank tab), that it would open just that blank tab
    *when you last closed Firefox, you had one or more tabs/web site open, that would allow you to "Restore Previous Session"
    #Have you tried that?
    #If so, what is happening in each circumstance when you reopen Firefox?
    '''Restore Previous Session'''<br />
    Open tabs are automatically saved when closing Firefox beginning in Firefox 4. To open your last session, after Firefox starts, click History > Restore Previous Session. For this to work
    #You must be remembering history (Options > Privacy > Remember my browsing history).
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    #You must not be using Private Browsing or permanent Private Browsing
    #*See [https://support.mozilla.com/en-US/kb/Private%20Browsing Private Browsing]
    #You must not use Clear Recent History or Clear history when Firefox closes
    #*See [https://support.mozilla.com/en-US/kb/Clear%20Recent%20History Clear Recent History]
    #*See [https://support.mozilla.com/en-US/kb/Options%20window%20-%20Privacy%20panel Options window-Privacy panel]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]

  • How to set the path for new version of  jdk 1.5.0

    hi
    i downloaded jdk 1.5.0 from sun website . i gave path like this C:\jdk1.5.0\bin; but showing error internal command doent reconiged.give me some instructions aboth this one with details.

    Read item #5 in the Installation Instructions for the file you downloaded.

  • Setting the "reasons" for signing in Acrobat XI Pro?

    I would like to set the reasons for signing a document in my digital signature. However, I can't find any place that lets me enter that information.
    For example, I want to enter something like "To confirm my participation"
    I have found quite a few support docs but they all refer to Acrobat X Security Prefs which are different from Acrobat XI.

    In Acrobat 11: Edit (or Acrobat on Mac) > Preferences > Signatures > Creation & Appearance > More > Show Reasons
    or did you want to add a customized item to the list of reasons that you're presented with?

  • I am trying to download a free trial of photoshop for my macbook pro and it says there is an error and that the requirements for the new version is not supported for the mac I have. I have looked at the list of requirements but have no idea how to tell wh

    I am trying to download a free trial of photoshop for my macbook pro and it says there is an error and that the requirements for the new version is not supported for the mac I have. I have looked at the list of requirements but have no idea how to tell what I do and do not have?

    Apple Menu --> About this Mac.
    Mylenium

  • Error while setting up enviroment for the application

    Hi,
    Im getting a popup box displaying the error message
    C:\WINDOWS\system32\ntvdm.exe
    Error while setting up enviroment for the application. Choose 'Close' to terminate the application.
    When I try to excute an external exe, why am I getting this error? and is there a way of getting this exe to execute properly without the error?
    Here my code for excuting the external exe
    String[] cmd = {"C:/gen.exe", "C:/a.zip"};
    Process p = Runtime.getRuntime().exec(cmd);
    p.waitFor(); "gen.exe" is the program i wish to execute and "a.zip" is the parameter i wish to excute it with.

    class ExecRuntime {
    public static void main(String args[]) throws Exception {
    String[] cmd = {"C:\\gen.exe", "C:\\a.zip"};
    Process p = Runtime.getRuntime().exec(cmd);
    p.waitFor();
    } Here we need to use backslashes, because the command is passed to the OS as is.
    If you need to be in C:\ to execute from command line, you will also need to use the
    exec() version that allows you to specify the 'current directory'
    Edited by: baftos on Mar 7, 2008 12:13 PM

  • "error occurred setting the server application active"

    Hi All,
    I found following error when I save outline in ASO application. It seems that the application cannot be started correctly. Other applications (BSO/ASO) are running correctly.
    "error occurred setting the server application active"

    try this:
    Issue can be from both server and application side:
    1)Addition of SERVERTHREADS with a proper value. When any database operation is requested then monitor the number of process, memory etc. Idea is to identify which process is trying to use max resource on server level.
    2) Also, if possible try and increase the ulimit setting to "unlimited".
    3) Verify NETDELAY and NETRETRYCOUNT -- Guess you have checked this so values should be fine here.
    4) If the environment is windows then:
    a)Open the Registry
    b)Navigate to Local Machine\System\CurrentControlSet\Services\TCPIP\Parameters
    c)Add new DWORD Value named TcpTimedWaitDelay, right click and select Modify. Select decimal radio button, type in 30. (The default value of this parameter is 2 minutes. This is how long it will take for a TCP/IP port that was used by the network for a connection to be released and made available again. 30 sec is the minimum allowed by Microsoft)
    d)Add new DWORD Value named MaxUserPort, right click and select Modify. Select decimal radio button, type in 65534. (The default value is 5000. This determines the highest port number TCP can assign when an application requests an available user port from the system).
    e)Add new DWORD Value named MaxFreeTcbs, right click and select Modify. Select decimal radio button, type in 6250. (The default value is 2000. This determines the number of TCP control blocks (TCBs) the system creates to support active connections. Because each connection requires a control block, this value determines how many active connections TCP can support simultaneously. If all control blocks are used and more connection requests arrive, TCP can prematurely release connections in the TIME_WAIT state in order to free a control block for a new connection).
    f) Reboot the server.
    5) On application side, look at the cache settings, If they are very high then try lowering them and check.
    Cheers!!
    HA:-)
    Edited by: user9513506 on Sep 2, 2008 5:03 AM

  • How do you set the duration for multiple stills in iMovie 2013?

    How do you set the duration for multiple stills in iMovie 2013?
    Before upgrading to the latest version of iMovie last month, I was able to set the duation of all of the stills included in an iMovie project at one time by clicking the apply to all still box in the adjustment pop up. That option is no longer apparent. If it is available I cannot find it, and I have tried several different ways to accomplish it. I have tried the iMovie help section and can find nothing to help.
    Apple, do I really have to adjust close to 500 pictures to a 5 second duration individually???
    REALLY??!!

    ...why wouldnt people want that level of accuracy when animating, especially when working to music at a specific duration?
    Because often people are animating to words or beats in the music.  Music is rarely performed with a computer-precise beat and tempo.  Musicians aren't robots: they swing the beat sometimes.  They use rubato.  They change tempo.  They change time signatures.  As a result, you have to FIND those words and beats.  It's not a situation where you can say, "There!  I've found the duration of one beat!  Now it's easy to find the rest of them!" 
    If you try it, you will be very disappointed.
    Try finding the precise end of a piece of music that fades or ends on a big chord with a ring-out.  You'll see that it's trial-and-error: what's the point where it becomes inaudible?  It depends on how high your speakers are turned up.  You might have them way up, you set an end point for the layer, and then you do a RAM Preview at a more reasonable volume.  You might say, "Hey!  The music ends before the layer ends!"...  but you KNOW you set the layer's out point when the audio file goes silent.
    AE has layer markers that can be used on an audio layer to mark beats, words, etc. They come in very handy.
    I guess it comes down to this: because AE can do so much different stuff, there are very few automated procedures.  Oh, Adobe tries with effects that convert audio levels to keyframes, but they're not 100% reliable... especially on something like a capella choral works.  For true accuracy, you need  find the timings yourself. 
    If you want something simpler, try a different application. But be prepared for lower level of accuracy.

  • Problem in setting the parameters for an OASingleSelectionBean

    Hi,
    I have created an advanced table, for which I have to allow single selection or mutliple selection according to my requirements ie dynamically. So, for single selection, I have created a OASingleSelectionBean dynamically and add this to my advanced table bean.
    I also want to set Action for the single selection option. I have set the action using
    setPrimaryClientAction() which takes an argument of oracle.cabo.ui.action.FirePartialAction class. Now I also want to pass certain parameters when the single selection event happens.
    For that, I have taken an object of FirePartialAction class and but using the FirePartialAction class .setParameters(oracle.cabo.ui.collection.Parameter[]) function. I am setting the parameters using
    Parameter class object.setKey
    Parameter class object.setValue
    But my problem is that I want the value for the parameters at runtime, for which I intend to use SPEL. But I am not able to use SPEL using the setValue method.
    So it goes like this in short:
    OAAdvancedTableBean.setTableSelection(OASingleSelectionBean)
    OASingleSelectionBean.setPrimaryClientAction(FirePartialAction)
    FirePartialAction.setParameters(Parameter[])
    Parameters.setKey(String)
    Parameters.setValue(String) --- In case of value I want to give SPEL as an argument as I get the value at rutime
    Is that any other way in which I can set the value for the parameters using SPEL?

    Hi,
    I got ur point.
    Although i have never tried.........Can you try using method
    Parameters.setValueBinding(new OADataBoundValueViewObject(<single selectionbean>,<vo attr>))
    In this way without the use of SPEL, you will be able to achieve the functionality!
    Try this and get back to me!
    --Mukul
    Message was edited by:
    Mukul Gupta

  • Set the password for zip file in unix

    Hi All,
    I have used the below command to zip the file and it is working fine.
    cd /YYYY;zip -r ZZZZ.zip ZZZZ.TXT
    While using the below command to set the password on zip file , I am getting error like "zip error: Invalid command arguments (encryption not supported)
    zip -P password -r ZZZZ.zip ZZZZ.TXT
    Can you please help me how to set the password for zip file in UNIX.
    Thanks,

    Do you use any characters in the password that might confuse the zip command? (like '-' or ';'?)
    If I use the command in RHEL4:
    cd /tmp
    zip -P password -r tt.zip gconfd-oracle
    adding: gconfd-oracle/ (stored 0%)
    adding: gconfd-oracle/lock/ (stored 0%)
    adding: gconfd-oracle/lock/ior (deflated 67%)

  • How to set the header for second page

    Hello all,
    I'm trying to set different header for first page and page number should starts from second page.
    Below is the sample code to set the header for each and every page.
    DECLARE
    hApplication OLE2.OBJ_TYPE;
    hWindow OLE2.OBJ_TYPE;
    hPane OLE2.OBJ_TYPE;
    hView OLE2.OBJ_TYPE;
    hDocuments OLE2.OBJ_TYPE;
    hDocument OLE2.OBJ_TYPE;
    hSelection OLE2.OBJ_TYPE;
    hParagraphFormat OLE2.OBJ_TYPE;
    hRange OLE2.OBJ_TYPE;
    hFields OLE2.OBJ_TYPE;
    hFont OLE2.OBJ_TYPE;
    args OLE2.LIST_TYPE;
    wdAlignParagraphLeft CONSTANT number(3) := 0;
    wdAlignParagraphCenter CONSTANT number(3) := 1;
    wdAlignParagraphRight CONSTANT number(3) := 2;
    wdSeekCurrentPageHeader CONSTANT number(3) := 9;
    wdSeekCurrentPageFooter CONSTANT number(3) := 10;
    wdSeekMainDocument CONSTANT number(3) := 0;
    wdFieldPage CONSTANT number(3) := 33;
    wdFieldNumPages CONSTANT number(3) := 26;
    wdPageBreak CONSTANT number(3) := 7;
    wdStory CONSTANT number(3) := 6;
    myTab CONSTANT varchar2(1) := chr(9);
    myBlue CONSTANT number(8) := 16711680; --FF0000
    myGreen CONSTANT number(8) := 65280; --00FF00
    myRed CONSTANT number(8) := 255; --0000FF
    myDkGreen CONSTANT number(8) := 32768; --008000
    myBlack CONSTANT number(8) := 0; --000000
    myText varchar2(2000);
    BEGIN
    hApplication:=OLE2.CREATE_OBJ('Word.Application');
    OLE2.SET_PROPERTY(hApplication, 'Visible', 1);
    hDocuments := OLE2.GET_OBJ_PROPERTY(hApplication, 'Documents');
    hDocument := OLE2.INVOKE_OBJ(hDocuments, 'Add');
    -------- Create Header and Footer --------
    hWindow := OLE2.GET_OBJ_PROPERTY(hApplication, 'ActiveWindow');
    hPane := OLE2.GET_OBJ_PROPERTY(hWindow, 'ActivePane' );
    hView := OLE2.GET_OBJ_PROPERTY(hPane, 'View' );
    ---- Header Section ---
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageHeader);
    hSelection := OLE2.GET_OBJ_PROPERTY(hApplication, 'Selection');
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Times New Roman');
    OLE2.SET_PROPERTY(hFont, 'Size', 10);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyBlue );
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'This is a');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    OLE2.SET_PROPERTY(hFont, 'Size', 16);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', MyDkGreen );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Test Header');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- Footer Section ----
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekCurrentPageFooter);
    hParagraphFormat := OLE2.GET_OBJ_PROPERTY(hSelection, 'ParagraphFormat');
    OLE2.SET_PROPERTY(hParagraphFormat, 'Alignment', wdAlignParagraphCenter);
    OLE2.RELEASE_OBJ(hParagraphFormat);
    hFields := OLE2.GET_OBJ_PROPERTY(hSelection, 'Fields');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'Page ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldPage);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, ' of ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    hRange := OLE2.GET_OBJ_PROPERTY(hSelection, 'Range');
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG_OBJ(args, hRange);
    OLE2.ADD_ARG(args, wdFieldNumPages);
    OLE2.INVOKE(hFields, 'Add', args );
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hRange);
    OLE2.RELEASE_OBJ(hFields);
    OLE2.SET_PROPERTY(hView, 'SeekView', wdSeekMainDocument);
    OLE2.RELEASE_OBJ(hView);
    OLE2.RELEASE_OBJ(hPane);
    OLE2.RELEASE_OBJ(hWindow);
    -------- Insert Text --------
    hFont := OLE2.GET_OBJ_PROPERTY(hSelection, 'Font');
    OLE2.SET_PROPERTY(hFont, 'Name', 'Arial');
    OLE2.SET_PROPERTY(hFont, 'Size', 12);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE );
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    OLE2.INVOKE(hSelection, 'TypeParagraph');
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText);
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myRed);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'first ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdPageBreak);
    OLE2.INVOKE(hSelection, 'InsertBreak', args);
    OLE2.DESTROY_ARGLIST(args);
    ----page 2
    myText := myTab || 'This text is on the ';
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, myText );
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', TRUE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlue);
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'second ');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.SET_PROPERTY(hFont, 'Bold', FALSE);
    OLE2.SET_PROPERTY(hFont, 'Color', myBlack );
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, 'page.');
    OLE2.INVOKE(hSelection, 'TypeText', args);
    OLE2.DESTROY_ARGLIST(args);
    ---- go to the top of the first page
    args := OLE2.CREATE_ARGLIST;
    OLE2.ADD_ARG(args, wdStory);
    OLE2.INVOKE(hSelection, 'HomeKey', args);
    OLE2.DESTROY_ARGLIST(args);
    OLE2.RELEASE_OBJ(hFont);
    OLE2.RELEASE_OBJ(hSelection);
    OLE2.RELEASE_OBJ(hDocument);
    OLE2.RELEASE_OBJ(hDocuments);
    OLE2.RELEASE_OBJ(hApplication);
    END;
    Please help me out
    Thanks,
    Bhavana

    Click on --
    Edit link for Page> Click "Edit Default" link on Banner >
    Under the "Banner Links"
    provide value something like this:
    Label = Help
    URL = /pls/portal30/docs/myhelp.html
    Icon = U can upload any icon here.
    For Application Components = See the Second Last tab on "Edit Component".
    Thanx,
    Chetan.

  • An error occurred searching the certificates for the server. ...

    Hi,
    I am using DSEE 6.2 in Fedora 7
    Each time I access the "Security" tab of my server in DSCC. I get the following error:
    "*An error occurred searching the certificates for the server. An authentication error occurred connecting to xxxxx. Check that the User ID and password are correct*"
    I need to click the "Click here to update authentication" link in the same tab and enter the User ID and password for the user that create the server. The error will gone for this session but reappear as I start a new session in DSCC

    This looks like a known bug. Please log a support case so this can be investigated further
    http://sunsolve.sun.com/search/document.do?assetkey=1-1-6537622-1

  • How to sets the Reason for Rejection of the Open Sales Order Lines

    Hello gurus,
              I want to set the Reason for Rejection of the Open Sales Order Lines, Case is like :
    If current date is exeed the Auto Void Confirmed Back Order Days(for item level) +  date (last responding from customer), then reason for rejection should be set, So i want the logic to find out the date is exceed or not.
    Thanks
    Anjana

    Hello anjana,
       Actually your question is some confusing, but if u want to get eldest change as active sales order then logic is as follows:
    1.  On base of OBJNR u have to get UDATE from JCDS table
    2. then write logic as:
    SORT i_jcds BY objnr stat chgnr DESCENDING.
          LOOP AT i_jcds INTO wa_jcds1.
            CLEAR lv_stat.
            lv_stat = wa_jcds1-stat.
            AT NEW objnr.
              AT NEW stat.
                CLEAR: wa_tab.
                wa_tab-objnr = wa_jcds1-objnr.
                wa_tab-stat = lv_stat.
              ENDAT.
            ENDAT.
            IF wa_jcds1-inact = 'X'.
              CLEAR lv_tabix.
              IF sy-tabix > 1.
                lv_tabix = sy-tabix - 1.
              ELSE.
                lv_tabix = 1.
              ENDIF.
              READ TABLE i_jcds INTO wa_jcds2 INDEX lv_tabix.
              IF sy-subrc = 0.
                wa_tab-chgnr = wa_jcds2-chgnr.
                wa_tab-udate = wa_jcds2-udate.
                wa_tab-utime = wa_jcds2-utime.
                APPEND wa_tab TO i_tab.
              ENDIF.
              CONTINUE.
            ELSE.
              wa_tab-chgnr = wa_jcds1-chgnr.
              wa_tab-udate = wa_jcds1-udate.
              wa_tab-utime = wa_jcds1-utime.
            ENDIF.
            AT END OF objnr .
              AT END OF stat.
                APPEND wa_tab TO i_tab.
              ENDAT.
            ENDAT.
          ENDLOOP.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr stat.
          SORT i_tab BY objnr stat udate utime.
          DELETE ADJACENT DUPLICATES FROM i_tab COMPARING objnr.
    3. now in i_tab table u'll get eldest UDATE
    Hope its work for u.
    Thanks & Regards,
    Sumit Joshi

  • How to End the Error message: "enter the password for the exchange account"

    i completed configure Exchange Account on my iPhone, but still show the error message:  "enter the password for the exchange account"

    make sure you don't have 2 step verification in gmail.
    otherwise you need to follow
    Signing in using application-specific passwords
    The codes that you’ll get with 2-step verification don’t work with all applications. There are a few applications that use information from your Google Account (like the Gmail application on your phone, or Outlook) that require another type of code. These are called application-specific passwords.
    Some devices and applications that use these special passwords include:
    POP and IMAP email clients such as Outlook, Mail and Thunderbird
    Gmail and Google Calendar on smartphones
    ActiveSync for Windows Mobile and iPhone
    YouTube Mobile on Apple devices
    Cloud Print
    Installed chat clients such as Google Talk and Adium
    3D Warehouse, Sketchup, and installed applications
    AdWords Editor
    Sync for Google Chrome
    Gmail Notifier
    How to generate an application-specific password
      Unlike a verification code that you receive from your phone or through Google Authenticator, application-specific passwords are generated. You don’t have to memorize them, ever - you simply generate a new one each time you need to sign into a particular application. Follow the steps below to generate your application-specific password: 
    Visit the Authorizing applications & sites page (pictured below) under your Google Account settings.
    Under the Application-specific passwords section, enter a descriptive name for the application (label 1) you want to authorize, such as "AdWords Editor – Desktop," then click “Generate application-specific password" (label 2).
    You'll then see the application-specific password you just created (3). You'll also see the name you wrote in for the device (4) and a link to Revoke (5) -- or cancel -- the code.
    Once you click Done, you’ll never see that application-specific code again. But don't panic: You can generate a new one whenever you’re prompted for an application-specific password by a non-browser device or application -- even a device or application you’ve authorized before.
    Using application-specific passwords
    When prompted for a password when you sign in to a non-browser application or device that accesses your Google Account:
    Enter your username.
    Enter your application-specific password in the password field.
    If your application has an option to remember your application-specific password or stay signed in, you can select that option so you won’t have to generate and enter a new application-specific password each time you access your account from this application or device.

Maybe you are looking for