Issue with USERS_GEN t-code

Hi All,
Please help in creating the Users by uploading from USERS_GEN.
Steps I have followed:
1. CSV file
2. User is created without any error but no other details are saved.
3. Roles tab is also empty.
4. User is not assigned to the Org. Unit
5. Password is not sent to the email id that is mentioned in the .csv
Kindly suggest how to proceed.
Thanks in Advance.
Regards,
Nalini K

How are you creating delivery in ZVL10G?
Are you calling some BAPI/ BDC?
sy-cprog should store the calling program (can be the main program if started by main program).
If transaction is started from your z-program the sy-cprog has to be your Z-program.
Anyways, if this doesn't work then we can try some flag usage in ABAP /SAP memory.
G@urav.

Similar Messages

  • Issue with Cross-Company code transactions and Extended Withholding tax

    Hi Gurus,
    I am having an issue with Cross-company code transaction while posting expense with 2 different company codes.
    In the 2 company codes, one company code is setup for Withholding tax and other was not set.
    While posting in FB50, I am getting the below message and system does not allow to post the invoice.
    Company codes have different settings for withholding tax treatment
    Message no. F5786
    Diagnosis
    You are entering a document containing at least one vendor or customer item and which has line items in several company codes. The extended withholding tax treatment has been set to active in one of these company codes, but not in one of the other company codes.
    System Response
    You cannot enter this kind of document.
    Procedure
    Enter the transaction in two documents.
    For this I tried to test the transaction by activating of extended Withholding tax for both the company codes. Then the invoice is posting correctly now.
    The point is if I activate extended withholding tax for the Company code which is not using the setup, will it face any issues in other areas? and also kindly advice whether is this a right way to set up to fix the current problem.
    Thanks for the Support and early response will be appreciated.
    JBC.

    Hi Mamta,
    Thanks for the Response. I think you misunderstood my scenario.
    For Eg in FB60 with Co code 5065:
    I am debiting the Expenses for Co Code 1000(Witholding tax not active) and crediting the Bank Account of Co Code 5065(Withholding tax setup is done for this co code). When I tried to post with these line items I have getting the error.
    Posting        GL                   Co Code
    Dr          106520(Exp)            1000
    Cr          202020(Bank)           5065
    For this I tried by activating the Withholding tax for Co code 1000 which is not active before and post it. The system allows me to post the invoice.
    I want to know whether is this a right way to solve this issue and will it impact on any other areas by only activating the Withholding tax for a Co code?
    Thanks,
    Bapu

  • Performance issue with pl/sql code

    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Elapsed Times are 30minutes , 40 minutes, 65 minutes , 3 minutes ,3 seconds.
    Expected elapsed time is maximum of 3 minutes. ( But some times it took 3 seconds too...! )
    Output on all different executions are same that is deletion and insertion of 12K records into a table.
    Here is the auto trace details of two different scenarios.
    Slow execution - 33.65 minutes
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                         1,712,343    1,712,342.6    41.4
    CPU Time (ms)                             1,679,689    1,679,688.6    44.7
    Executions                                        1            N/A     N/A
    Buffer Gets                              ##########  167,257,973.0    86.9
    Disk Reads                                    1,284        1,284.0     0.4
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                       4,264            N/A     N/A
    Cluster Wait Time (ms)                        3,468            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                        6            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------Fast Exection : 5 seconds
    Stat Name                                Statement   Per Execution % Snap
    Elapsed Time (ms)                            41,550       41,550.3     0.7
    CPU Time (ms)                                40,776       40,776.3     1.0
    Executions                                        1            N/A     N/A
    Buffer Gets                               2,995,677    2,995,677.0     4.2
    Disk Reads                                       22           22.0     0.0
    Parse Calls                                       1            1.0     0.0
    User I/O Wait Time (ms)                         162            N/A     N/A
    Cluster Wait Time (ms)                          621            N/A     N/A
    Application Wait Time (ms)                        0            N/A     N/A
    Concurrency Wait Time (ms)                       55            N/A     N/A
    Invalidations                                     0            N/A     N/A
    Version Count                                     4            N/A     N/A
    Sharable Mem(KB)                                 85            N/A     N/A
              -------------------------------------------------------------For security reasons, I cannot share the actual code. Its a report generating code that deletes and load the data into table using insert into select statement.
    Delete from table ;
    cursor X to get the master data ( 98 records )
    For each X loop
    insert into tableA select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    insert into tableB select * from tables where a= X.a and b= X.b and c=X.c ..... ;
    -- 12 K records inserted on average
    end loop ;1. The select query is complex with bind variables ( explain plan varies for each values )
    2. I have checked the tablespace of the tables involved, it is 82% used. DBA confirmed that it is not the reason.
    3. Disk reads are high during long execution.
    4. At long running times, I can see a db sequential read wait event on a index object. This index is on the table where data is inserted.
    All I need to find is why this code is taking 3 seconds and 60 minutes on the same day and on the consecutive executions ?
    Is there any other approach to find the root cause of this behaviour and to fix it ? Kindly adivse.
    Thanks in advance your help.
    Regards,
    Hari
    Edited by: BluShadow on 26-Sep-2012 08:24
    edited to add {noformat}{noformat} tags.  You've been a member long enough to know to do this yourself... so please do so in future.  ({message:id=9360002})                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hariharan ST wrote:
    Hi Oracle Gurus,
    I am in need of your recommendations for a performance issue that I am facing in production envrionment. There is a pl/sql procedure which executes with different elapsed time at different executions. Please reedit your post and add some code tags around the trace information. This would improve readability greatly and will help us to help you
    example
    {<b></b>code}
    select * from dual;{<b></b>code}
    Based upon your description I can imagine two things.
    a) The execution plan for the select query does change frequently.
    A typical reason can be not up to date statistics.
    b) Some locking / wait conflict. For example upon a UK index.
    Are there any other operations going on while it is slow? If anybody inserts a value, then your session will wait, if the same (PK/UK) value also is to be inserted.
    Those wait events can be recognized using standard tools like oracle sql developer or enterprise manager while the query is slow.
    Also go through the links that are in the FAQ. They tell you how to get better information for makeing a tuning request.
    SQL and PL/SQL FAQ
    Edited by: Sven W. on Sep 25, 2012 6:41 PM

  • I am having issues with my product code to get my serial number.

    I bought a new computer and would like to install on new computer but when I enter my product code it comes up invalid. This is the student mac edition for the CS5 master suite. Any insights would be greatly appreciated. Thanks,

    You probably have to talk directly with Adobe on these issues. Here are a couple Adobe sites that deal with activation, and have chat/phone links and numbers
    Contact Customer Care
    Activation & Deactivation Help

  • Issues with accepting access code in Polycom phones

    I have a polycom conferencing phone that is associated with VG224. When trying to dial in to my level 3 conferencing account from the phone in the conference room, it usually accepts the code after 2-3 attempts.
    The VG224 is SCCP configured, VG224 port is also registered with the Call Manager. I have changed the polycom phone with the other polycom but the issue is still persist.
    VG224 Version- 15.1
    CUCM Version - System version: 9.1.2.10000-28
    Please suggest.

    This is Video Over IP, please move to a relevant area.

  • Issues with Multiple Company Codes

    Our organization consists of 42 legal entities which all have their own company code in SAP and their own organizational structure.  An example of how our jobs and positions are set up in SAP is provided below.
    Job:  Production Supervisor
    Position:  0140 Production Supervisor (includes company code before position)
    We may have 200 Production Supervisors company wide each with their own position number but they are tied to only one job number for Production Supervisor.
    We are considering changing how the jobs and positions are set up in SAP so that instead of Production Supervisor the job would be Supervisor III and the position would remain the same.  However, there may be other supervisor positions that will also be included in the Supervisor III job.  We are afraid this may cause issues in the future if we implement other areas of the HCM module including compensation management, succession planning, MSS and ESS.  Could we create a reporting structure seperate from the org structure so that executives at the corporate office would have access to information on all employees in their area of expertise company wide?  Any suggestions you have would be greatly appreciated.

    Hi,
    You can use the task object.
    Or check out the Qualification Management.
    Regards,
    Dilek

  • Issue with My VB Code when connecting to SAP

    Hi Guys: I am trying to upload Customer Master Data information into SAP from Excel using VB. Here is my code.
    Private Sub CommandButton3_Click()
    ' Getting the last filled Row in Column A
    vLastRow = Cells(Rows.Count, "A").End(xlUp).Row
    ' Setting the necessary variables for R/3 connection
    Set objBAPICortrol = CreateObject("SAP.Functions")
    Set objConnection = objBAPICortrol.connection
    ' Establish a connection
    If objConnection.Logon(0, False) Then
        MsgBox "Connection Established"
    End If
    On Error Resume Next
    ' Assign the Parameters
    Set objCreateCustomer = objBAPICortrol.Add("BAPI_CUSTOMER_CREATE")
    Set objAccountGroup = objCreateCustomer.Exports("Acct Gr")
    Set objCompanyCode = objCreateCustomer.Exports("Co Code")
    Set objSalesOrganization = objCreateCustomer.Exports("Sales Org")
    Set objDistributionChannel = objCreateCustomer.Exports("Dist Ch")
    Set objDivision = objCreateCustomer.Exports("Div")
    Set objName = objCreateCustomer.Exports("Name")
    Set objStreet = objCreateCustomer.Exports("Street")
    Set objHouseNumber = objCreateCustomer.Exports("House Number")
    Set objPostalCode = objCreateCustomer.Exports("Postal Code")
    Set objCity = objCreateCustomer.Exports("City")
    Set objRegion = objCreateCustomer.Exports("Region")
    Set objCountry = objCreateCustomer.Exports("Country")
    Set objCountyCode = objCreateCustomer.Exports("County Code")
    Set objPhone = objCreateCustomer.Exports("Phone")
    Set objContact = objCreateCustomer.Exports("Contact")
    Set objFax = objCreateCustomer.Exports("Fax")
    Set objEmail = objCreateCustomer.Exports("Email")
    Set objDirections = objCreateCustomer.Exports("Directions")
    Set objCityCode = objCreateCustomer.Exports("City Code")
    Set objReconAccount = objCreateCustomer.Exports("Recon Account")
    Set objPaymentHistory = objCreateCustomer.Exports("Payment History")
    Set objCustomerPricingProcedure = objCreateCustomer.Exports("Cust Pricing Procedure")
    Set objCustomerStatisticsGroup = objCreateCustomer.Exports("Cust Stat Group")
    Set objIncoTerms = objCreateCustomer.Exports("Inco Terms")
    Set objTermsofPayment = objCreateCustomer.Exports("Terms of Payment")
    Set objAccountAssignmentGroup = objCreateCustomer.Exports("Acnt Assign Group")
    Set objTaxClassification = objCreateCustomer.Exports("Tax Classification")
    ' Now looping through all values create customer
    ' The data begin row is set to 2
    For vRows = 2 To vLastRow
    ' Set the Parameter Values
    objAccountGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 1).Value
    objCompanyCode = ThisWorkbook.ActiveSheet.Cells(vRows, 2).Value
    objSalesOrganization = ThisWorkbook.ActiveSheet.Cells(vRows, 3).Value
    objDistributionChannel = ThisWorkbook.ActiveSheet.Cells(vRows, 4).Value
    objDivision = ThisWorkbook.ActiveSheet.Cells(vRows, 5).Value
    objName = ThisWorkbook.ActiveSheet.Cells(vRows, 6).Value
    objStreet = ThisWorkbook.ActiveSheet.Cells(vRows, 7).Value
    objHouseNumber = ThisWorkbook.ActiveSheet.Cells(vRows, 8).Value
    objPostalCode = ThisWorkbook.ActiveSheet.Cells(vRows, 9).Value
    objCity = ThisWorkbook.ActiveSheet.Cells(vRows, 10).Value
    objRegion = ThisWorkbook.ActiveSheet.Cells(vRows, 11).Value
    objCountry = ThisWorkbook.ActiveSheet.Cells(vRows, 12).Value
    objCountyCode = ThisWorkbook.ActiveSheet.Cells(vRows, 13).Value
    objPhone = ThisWorkbook.ActiveSheet.Cells(vRows, 14).Value
    objContact = ThisWorkbook.ActiveSheet.Cells(vRows, 15).Value
    objFax = ThisWorkbook.ActiveSheet.Cells(vRows, 16).Value
    objEmail = ThisWorkbook.ActiveSheet.Cells(vRows, 17).Value
    objDirections = ThisWorkbook.ActiveSheet.Cells(vRows, 18).Value
    objCityCode = ThisWorkbook.ActiveSheet.Cells(vRows, 19).Value
    objReconAccount = ThisWorkbook.ActiveSheet.Cells(vRows, 20).Value
    objPaymentHistory = ThisWorkbook.ActiveSheet.Cells(vRows, 21).Value
    objCustomerPricingProcedure = ThisWorkbook.ActiveSheet.Cells(vRows, 22).Value
    objCustomerStatisticsGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 23).Value
    objIncoTerms = ThisWorkbook.ActiveSheet.Cells(vRows, 24).Value
    objTermsofPayment = ThisWorkbook.ActiveSheet.Cells(vRows, 25).Value
    objAccountAssignmentGroup = ThisWorkbook.ActiveSheet.Cells(vRows, 26).Value
    objTaxClassification = ThisWorkbook.ActiveSheet.Cells(vRows, 27).Value
    ' Function call
    objCreateCustomer.call
    ' Get return parameters & display in excel
    Set objReturn = objCreateCustomer.Imports("RETURN")
    ActiveSheet.Cells((vLastRow + vRows), 1) = objReturn.Value("MESSAGE")
    ' Error handling
    If Err Then
        MsgBox Err.Description
    End If
    Next vRows
    End Sub
    I am getting an error...
    "No Connection to SAP available".
    PLease advise how I can correct this.
    thanks
    Brian

    hi Brain,
            i hope the following URL's will be useful for you
    http://www.programmingtalk.com/archive/index.php/t-21399.html
    Re: VB and SAP connection with BAPI Active X control
    http://help.sap.com/saphelp_46c/helpdata/en/76/4a42f7f16d11d1ad15080009b0fb56/content.htm
    Reward points if useful
    regards,
    Pavan

  • Issues with XML Source Code

    Has anyone seen or heard fo this issue:
    I was sent a new xml source code and loaded it into my .rtf file. When I went to preview the file it showed up no problem. All great and dandy!
    When I tried to add a field and preview the field would not show up. Yes, there is data in the XML sourse code for the tag.
    I decided to run a test and load some of the old XML source code and had no problems. I was able to move fields, add plain text, and delete fields and my changes would display in the preview.
    The only thing we can think of that is different is that the previous xml source code was generated from 9. 2. 08 database we recently upgraded to 10g. The new source code is from 10g.
    Does this make any sense? Would our upgrade to 10g result in not being able to change the template? Or is it something else?
    Thanks,
    Jessica

    Tim,
    I actually just sent you an e-mail. It contains the rtf and the source codes.
    Thanks,
    Jessica

  • Proxy issue with SCM - Error code: 400  ICM_HTTP_CONNECTION_FAILED

    We have recently added an SCM system to our landscape.  I am trying to upload data to BI within SCM.  I have set up the method and tested it and it works fine.  I am pulling the data in to XI from a flat file and converting it to XML, which works fine, I have tested the payload in the message mapping test tab.  When it trys to connect to the SCM system it looks like it hangs forever in sxmb_moni with the error message.
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine:     Integration Server
    Addressing Type:   URL Address
    Target Host:           <hostname>
    Service NUmber:     8000
    Path:                     /sap/xi/engine?type=receiver
    Auth Type:            Use Logon Data for SAP System
    SECOND
    I cannot see any errors on the Runtime either because my communiation is not showing up...  I have saved it and activiated it.  The adapter type is XI.
    Any help would be appreciated.
    Skip Ford

    Hi
    Error when receiving by HTTP (error code: 400,
    error text: ICM_HTTP_CONNECTION_FAILED)
    I have also created my proxy in SCM, that seems to be fine as well when I test it.
    The communication channels are as follows...
    Transport Protocol: HTTP 1.0
    Message Protocol: XI 3.0
    Adapter Engine: Integration Server
    Addressing Type: URL Address
    Target Host: <hostname>
    Service NUmber: 8000
    Path: /sap/xi/engine?type=receiver
    Auth Type: Use Logon Data for SAP System
    I think the parameter Path for the server proxy should be
    /sap/xi/engine?type=entry
    Thanks
    Gaurav

  • BC/Muse syncing issue with third-party code

    Hi there, I was hoping someone had a solution to this issue - which is this:
    I have used some third party code for a Hotel's 'QuickBook' function on every page. Periodically, this code stops working on some pages, and works on others - mainly when I republish the site via Muse.
    I asked the code's developer to look at it and they found this problem:
    <form method="post" action="http://fe.avvio.com/convert/site/Clandeboye%20Lodge/index.php" id="c5QuickBook3Fields"></form>
    The form effectively begins and ends on the same line.
    However, the </form> appears on a completely different line in the code - rather than the wrong place (as indicated above) it appears in excatly the correct place. Does BC 'render' this either in the wrong place, or doesn't recognise it being there at all?
    As a temporary fix: When I log into BC and edit the website from the back end, all I have to do is navigate to the offending page where the QuickBook rests, click 'Update' without making any changes at all and it begins working again.
    As a workaround this is obvioulsy a bit of a chore, but more importantly it's impossible to tell when, or on what page, this third party code decides not to work!
    It's worth pointing out that the third party code seems to be fine - I've had it looked over and it does in fact work continuously on competitor websites I've been checking.
    Apologies if it doesn't make sense... honestly, it has me baffled. I might even have to re-word this at a later stage!
    Thanks for any help though.

    If you have the entire iTunes folder from the old system and have restored this into <User's Music> on the new one then iTunes should treat this as the "home" library for the device. It should sync without removing any content. If not, see Recover your iTunes library from your iPod or iOS device.
    I suspect the options are greyed out because there are currently no Tones in the iTunes library to sync.
    tt2

  • Issues with DRM Error Codes (OSMF2+FMS+FAX)

    Hi,
    We've been having problems with our DRM implementation for FMS / OSMF2 / FAX.
    Having investigated the problem, we've worked out that the root cause is that the NetStream obect within the LightweightVideoElement class triggers a DRMErrorEvent with the errorID 3304 which is not handled in the onDRMErrorEvent function of the same class.
    Looking at the code, OSMF2 has been developed to handle only the error 3330 and therefore the end result is that our DRM authentication process (normally triggered by event listeners added to the DRMTrait) is not fired.
    Changing the value of DRMServices.DRM_NEEDS_AUTHENTICATION and LightWeightVideoElement.DRM_NEEDS_AUTHENTICATION to the values 3304 as apposed to the programmed 3330 value resolves all our problems and by adding an event listener to the DRMTriat for the changes in value (DRMEvent.DRM_STATE_CHANGE) and then switching on the event.drmState value, we can now send our authentication details when the drmState  = DRMState.AUTHENTICATION_NEEDED.
    Here is a stack trace up to the point where we send our DRM authentication based on the changes above.
    Main Thread (Suspended)
    com.redbeemedia.redplayer::AbstractMediaPlayer/onDRMChange
    flash.events::EventDispatcher/dispatchEventFunction [no source]
    flash.events::EventDispatcher/dispatchEvent [no source]
    org.osmf.net.drm::NetStreamDRMTrait/onStateChange
    flash.events::EventDispatcher/dispatchEventFunction [no source]
    flash.events::EventDispatcher/dispatchEvent [no source]
    DRMServices/updateDRMState
    DRMServices/onDRMError:425
    flash.net.drm::DRMManager/issueDRMErrorEvent [no source]
    flash.net.drm::DRMManager/onDownloadVoucherError [no source]
    DRMManagerSession/issueDRMErrorEvent [no source]
    DRMVoucherDownloadContext/onSessionError [no source]
    DRMManagerSession/onCheckStatus [no source]
    flash.utils::Timer/_timerDispatch [no source]
    flash.utils::Timer/tick [no source]
    Does anyone know why we might be getting the 3304 error on the netstream and not the expected 3304?
    Cheers,
    Mat

    Hi Mat,
    DRM Error 3304 is AuthorizationFailed error. The "Current user not authorized to view content, login as a different user"
    Thanks,
    Apurva

  • Authorisation issue with Vendor match code

    The authorisations for purchasing vendor create/change/display (mk01/mk02/mk03) has been restricted to a single Vendor account group in authorisations.
    However the mathc code search in (mk02/mk03) allows vendors in all account groups to be seen, showing post code and name.
    Is there an authorisation object to prevent this and only allow visibility of a specific vendor account group within the match code search?
    Thanks
    Rosalind

    F_LFA1_GRP

  • Issue with the tariff code

    Hello gurus,
    I came across the below error when trying to uplod the tariff code in to SAP GTS using the transaction /SAPSLL/LLNS_UPL101.
    "Errror during consistency check for the numbering scheme : national feature"
    Is anyone came across this error and what is the resolution ?
    thanks
    -sj

    Hi Sam,
    This error occurs if there is a difference between your customizing and the provided XML.
    To fix please call transaction SPRO   > SAP Reference IMG   > SAP Global Trade Services   > General Settings   > Numbering Schemes   > Define Numbering Scheme for Tariff Code Numbers
    Double click on the relevant scheme and switch to change mode. Now try to activate or deactivate (depending on the
    state before) the checkbox 'Country-Specific' and save the new setting. Finally try again to upload the file.
    Hope this helps.
    Michael

  • Issue with Start Routine

    Hi Experts,
    I searched in the forum, but no Start Routine found which includes lot of code,as i know it's not gud to post code here, but i am not finding solution, pls help me.
    I have small issue with the following code, pls specify changes.Original routine is from BW3.5 version, i have made some changes, please specify if any. If you could help me, i will be very thankfull to u people,
    Start Routine:
    TYPES:
    BEGIN OF sl_keyfigures,
    ---(Here all the fields are defined)
    END OF sl_keyfigures.
    DATA: gt_sl_keyfigures TYPE TABLE OF sl_keyfigures,
          lv_corqty LIKE /bi0/acds_ds0600-apo_corqty,
          lv_logsys LIKE /bi0/acds_ds0600-apo_logsys,
          ls_monitor TYPE rsmonitor,
          gs_current_doc TYPE /bic/cs80cds_ds07.
    FIELD-SYMBOLS: <ls_data_package> TYPE data_package_structure,
                     <ls_time_series> TYPE /bi0/acds_ds0700.
      DATA: ls_keyfigures TYPE sl_keyfigures,
            lv_corr_cumdel LIKE /bi0/acds_ds0700-apo_delqty,
            lv_cumdel LIKE /bi0/acds_ds0700-apo_delqty,
            lv_cumreq LIKE /bi0/acds_ds0700-apo_delreq,
            lv_cumcon LIKE /bi0/acds_ds0700-apo_delcon.
      SORT SOURCE_PACKAGE BY doc_number s_ord_item apo_logsys calday.
      CLEAR: lv_corr_cumdel, lv_cumdel, lv_cumreq, lv_cumcon.
      LOOP AT SOURCE_PACKAGE ASSIGNING <ls_data_package>.
        IF gs_current_doc-doc_number <> <ls_data_package>-doc_number OR
           gs_current_doc-s_ord_item <> <ls_data_package>-s_ord_item OR
           gs_current_doc-apo_logsys <> <ls_data_package>-apo_logsys.
    doc changed
          CLEAR: lv_corr_cumdel, lv_cumdel, lv_cumreq, lv_cumcon.
          gs_current_doc-doc_number = <ls_data_package>-doc_number.
          gs_current_doc-s_ord_item = <ls_data_package>-s_ord_item.
          gs_current_doc-apo_logsys = <ls_data_package>-apo_logsys.
          SELECT apo_corqty FROM /bi0/acds_ds0600 INTO lv_corqty
            WHERE doc_number = <ls_data_package>-doc_number
            AND s_ord_item = <ls_data_package>-s_ord_item
            AND apo_logsys = <ls_data_package>-apo_logsys.
          ENDSELECT.
    IF sy-subrc <> 0.
    no correction quantity found
            IF <ls_data_package>-apo_logsys IS INITIAL.
              lv_logsys = 'no logical system' ( 001 ).
            ELSE.
              lv_logsys = <ls_data_package>-apo_logsys.
            ENDIF.
            ls_monitor-msgid = 'RS_BCT_APO_CDS'.
            ls_monitor-msgty = 'S'.
            ls_monitor-msgno = '010'.
            ls_monitor-msgv1 = <ls_data_package>-doc_number.
            ls_monitor-msgv2 = <ls_data_package>-s_ord_item.
            ls_monitor-msgv3 = lv_logsys.
            ls_monitor-detlevel = '2'.
            APPEND ls_monitor TO MONITOR.
          ENDIF.
        ENDIF.
        ls_keyfigures-vbeln = <ls_data_package>-doc_number.
        ls_keyfigures-vbelp = <ls_data_package>-s_ord_item.
        ls_keyfigures-logsys = <ls_data_package>-apo_logsys.
        ls_keyfigures-date = <ls_data_package>-calday.
        lv_cumdel = lv_cumdel + <ls_data_package>-apo_delqty.
        lv_cumreq = lv_cumreq + <ls_data_package>-apo_delreq.
        lv_cumcon = lv_cumcon + <ls_data_package>-apo_delcon.
        lv_corr_cumdel = lv_cumdel - lv_corqty.
    call for requested time series
        CALL FUNCTION 'CMDS_CALC_SERVICE_LEVEL'
          EXPORTING
            iv_demand_qty       = <ls_data_package>-apo_delreq
            iv_delivery_qty     = <ls_data_package>-apo_delqty
            iv_***_delivery_qty = lv_corr_cumdel
            iv_***_demand_qty   = lv_cumreq
          IMPORTING
            ev_early_qty        = ls_keyfigures-early_req_qty
            ev_early_scl        = ls_keyfigures-early_req_scl
            ev_late_qty         = ls_keyfigures-late_req_qty
            ev_late_scl         = ls_keyfigures-late_req_scl
            ev_punct_qty        = ls_keyfigures-punct_req_qty
            ev_punct_scl        = ls_keyfigures-punct_req_scl.
    Since open requested quantities for customer orders are not updated
    in BW from InfoSource 2LIS_11_V_SCL key figures that are based on
    open requested quantities cannot be calculated
        IF <ls_data_package>-apoplanned <> '1'.
          CLEAR: ls_keyfigures-early_req_qty,
                 ls_keyfigures-early_req_scl,
                 ls_keyfigures-late_req_qty,
                 ls_keyfigures-late_req_scl,
                 ls_keyfigures-punct_req_qty,
                 ls_keyfigures-punct_req_scl.
        ENDIF.
    call for confirmed time series
        CALL FUNCTION 'CMDS_CALC_SERVICE_LEVEL'
          EXPORTING
            iv_demand_qty       = <ls_data_package>-apo_delcon
            iv_delivery_qty     = <ls_data_package>-apo_delqty
            iv_***_delivery_qty = lv_corr_cumdel
            iv_***_demand_qty   = lv_cumcon
          IMPORTING
            ev_early_qty        = ls_keyfigures-early_conf_qty
            ev_early_scl        = ls_keyfigures-early_conf_scl
            ev_late_qty         = ls_keyfigures-late_conf_qty
            ev_late_scl         = ls_keyfigures-late_conf_scl
            ev_punct_qty        = ls_keyfigures-punct_conf_qty
            ev_punct_scl        = ls_keyfigures-punct_conf_scl.
        APPEND ls_keyfigures TO gt_sl_keyfigures.
        CLEAR ls_keyfigures.
      ENDLOOP.
    Error:
    E:Within classes and interfaces, you can only use "TYPE" to refer to ABAP
    Dictionary types (not "LIKE" or "STRUCTURE").
    Thanks,
    Venkatesh

    eg of start routine:
    SELECT customer /bic/cg_gblrp1 /bic/cg_regrp2 /bic/cg_locrp3
        /bic/cg_locrp4 /bic/cg_locrp5 /bic/cg_chanel
        /bic/cg_subchn
        INTO TABLE tab_customer FROM /bi0/pcustomer
        FOR ALL ENTRIES IN tab_cust WHERE
        customer = tab_cust-customer AND
        objvers = 'A'.
        SORT tab_customer BY customer.
    Hope this helps and assign pts for the same.

  • Issue with JAVA Mail API

    Hi
    We have a requirement to create a custom e mail. For the same I am trying to use Java Mail API.I am facing an issue with the following code:
    session session1 = session.getInstance(properties, null);
    System gives an error Sourced file: inline evaluation of: ``Properties props = new Properties(); session session1 = session.getInstance(prop . . . '' : Typed variable declaration : Class: session not found in namespace
    Is there some specific API i need to import for session class. Kindly suggest.
    Regards
    Shobha

    Hi Shobha,
    I was also facing the same issue from last couple of weeks and just now i have achieved the working functionality.
    Please find below working code and replace values as per your serveru2019s configuration.
    import com.sap.odp.api.util.*;
    import java.util.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    import java.io.File;
    import java.net.*;
    // SUBSTITUTE YOUR EMAIL ADDRESSES HERE!!!
    String to =<email address>;
    String from =<email address>;
    // SUBSTITUTE YOUR ISP'S MAIL SERVER HERE!!!
    String host = <smtp host name>;
    String user = <smtp user name>;
    // Create properties, get Session
    // Properties props = new Properties();
    Properties props = System.getProperties();
    props.put("mail.transport.protocol", "smtp");
    props.put("mail.smtp.host", host);
    props.put("mail.debug", "false");
    props.put("mail.smtp.auth", "false");
    props.put("mail.user",user);
    props.put("mail.from",from);
    Session d_session = Session.getInstance(props,null);//Authenticator object need to be set
    Message msg = new MimeMessage(d_session);
    msg.setFrom(new InternetAddress(from));
    InternetAddress[] address = {new InternetAddress(to)};
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject("Test E-Mail through Java");
    msg.setSentDate(new Date());
    msg.setText("This is a test of sending a " +
    "plain text e-mail through Java.\n" +
    "Here is line 2.");
    Transport.send(msg);
    Deepak!!!

Maybe you are looking for

  • IMovie 6 will not Share/Export

    I have successfully imported clips from my Sony HD camera. BUT iMovie 6 will NOT export nor share. Tried all possible options (even select clips only, reduced clip size down to 6 seconds). No luck. Any ideas what to do next? My computer is a new G5 P

  • How do I stop iTunes from syncing my gmail emails to my iPhone 4S?

    I tried deselecting my gmails from the list from the "Info" tab in iTunes, hit the "Apply" button and after a while the gmails on the list are selected and greyed out. The gmails show up in my iPhone 4S running the latest software. Any way to stop th

  • I "upgraded" to 10.8 Mountain Lion and now can only email one photo at a time

    With 10.8 I can now send only one photo at a time from iPhoto through Mail - e.g., two "small" photos with a combined file size of 400 kb will "resize (null)" and freeze Mail, whereas I can send one "actual size" photo 5 mb in size.  This stinks sinc

  • Subvi nodes not show up

    Hi, I have written a subvi to obtain current at a specific voltage. But when I tried to put it in a for loop to obtain I-V curves,I found no nodes were available for wiring (voltage input, current read out et cl). It doesn't happen when I use subvi f

  • HT4623 i tried to update my phone and it doesn't work.

    i tried to update my phone and it doesn't work.  Tried restoring from DFU, and other things.  I got error message 3194 and have also gotten "this device isn't eligible for the requested build"  What do i try now?