Reg:atleast one queries

Hi,
I'm confused in writing the at least one queries.
For ex:
Find the book purchased by atleast one student having book no:1543...
I need to write the above query using BOOKS AND STUDENTS table..
Could you suggest me for writing this type of queries {atmost etc..}
Thank you,
josh
Edited by: josh1612 on Oct 20, 2008 11:00 PM
Edited by: josh1612 on Oct 20, 2008 11:12 PM

I think i need to give the structure of the table also:
Table name      Attributes
instructor              Id, name, university
Shirts              Size, color, gender
students              Id, name, university Query:
(1)     Find the color purchased by atleast one student whose university is same as instructors university and the size of the shirt is 22
note:
If the above attributes or tables are not sufficient fot the above reqmt then please let me know what need to be added
please Check whether the following is up to the reqmt:
select s.color
from shirts s,students s1,instructor i
where s.size=22 and
s1.university=s.university;

Similar Messages

  • Invoice verification:-- complete atleast one line of ACCOUNTINGDATA

    Sap Gurus,
    During invoice verification an error is coming.... " complete atleast one line of accounting data for item 000003".
    In PO account assignment is cost center and item category is services.
    service line item is having 3 parts.
    1st and 3rd  is linked with cost center 25020 and 3rd one to 25030. 2nd is linked with cost center 25030.

    Hi Chintan
    thanks for the Prompt reply. But where can we see the Account assignment from. Is it referring to the account assignment field in PO. The same Account assignment (Cost Center) has been entered in the PO line item as well.
    Thanks
    Nitin

  • SDM deploy af atleast one item aborted

    Hi,
    We are not able to deploy ear file on server and getting exception "Deploy of atleast one item aborted". Till now we have tried below solutions for fixing the same:
    Restart SDM both from MMC and Console.
    Changed SDM password.
    Enable/Disable SDM from JCMON.
    Restart J2EE server.
    Changed NWDS workspace and deploy fresh ISA application.
    Tried to deploy from SDM GUI.
    After all these attempts we are still not able to deploy. Attached is SDM Log file for this problem.
    Looking forward for valuable thoughts on this......
    Dec 31, 2014 2:10:46 AM  Info: Start file transfer to E:\usr\sap\CRQ\JC00\SDM\program\temp\temp3728619115795722000Saltestapp_ear.ear Dec 31, 2014 2:10:47 AM  Info: File transfer of E:\usr\sap\CRQ\JC00\SDM\program\temp\temp3728619115795722000Saltestapp_ear.ear finished for 296 ms. Total file size is 30508322 bytes. Dec 31, 2014 2:10:47 AM  Info: The SDM client uses an old SDM client API. Dec 31, 2014 2:10:47 AM  Info: -------------------------- Starting deployment ------------------------ Dec 31, 2014 2:10:47 AM  Info: Error handling strategy: OnErrorStop Dec 31, 2014 2:10:47 AM  Info: Prerequisite error handling strategy: OnPrerequisiteErrorStop Dec 31, 2014 2:10:47 AM  Info: Update strategy: UpdateAllVersions Dec 31, 2014 2:10:47 AM  Info: Starting deployment prerequisites: Dec 31, 2014 2:10:47 AM  Info: Loading selected archives... Dec 31, 2014 2:10:47 AM  Info: Loading archive 'E:\usr\sap\CRQ\JC00\SDM\program\temp\temp3728619115795722000Saltestapp_ear.ear' Dec 31, 2014 2:10:47 AM  Info: Selected archives successfully loaded. Dec 31, 2014 2:10:47 AM  Info: Actions per selected component: Dec 31, 2014 2:10:47 AM  Info: Initial deployment: Selected development component 'Saltestapp_ear'/'sap.com'/'localhost'/'2014.12.31.02.10.28'/'0' will be deployed. Dec 31, 2014 2:10:47 AM  Info: Ending deployment prerequisites. All items are correct. Dec 31, 2014 2:10:47 AM  Info: Saved current Engine state. Dec 31, 2014 2:10:47 AM  Info: Starting: Initial deployment: Selected development component 'Saltestapp_ear'/'sap.com'/'localhost'/'2014.12.31.02.10.28'/'0' will be deployed. Dec 31, 2014 2:10:47 AM  Info: SDA to be deployed: E:\usr\sap\CRQ\JC00\SDM\root\origin\sap.com\Saltestapp_ear\localhost\0\2014.12.31.02.10.28\temp3728619115795722000Saltestapp_ear.ear Dec 31, 2014 2:10:47 AM  Info: Software type of SDA: J2EE Dec 31, 2014 2:10:47 AM  Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) ***** Dec 31, 2014 2:10:54 AM  Info: Begin of log messages of the target system: 14/12/31 02:10:47 -  *********************************************************** 14/12/31 02:10:48 -  Start updating EAR file... 14/12/31 02:10:48 -  start-up mode is lazy 14/12/31 02:10:51 -  EAR file updated successfully for 2806ms. 14/12/31 02:10:51 -  Start deploying ... 14/12/31 02:10:54 -  EAR file uploaded to server for 2892ms. 14/12/31 02:10:54 -  ERROR: Not deployed. Deploy Service returned ERROR:                      com.sap.engine.services.rmi_p4.MarshalException: Exception when trying to read the original exception.; nested exception is:                      java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError                      at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:732)                      at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException(P4ObjectBrokerClientImpl.java:714)                      at com.sap.engine.services.rmi_p4.Call.getResultStream(Call.java:200)                      at com.sap.engine.services.deploy.DeployService_Stub.deploy(DeployService_Stub.java:507)                      at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:709)                      at com.sap.engine.deploy.manager.DeployManagerImpl.deploy(DeployManagerImpl.java:513)                      at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:188)                      at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)                      at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)                      at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)                      at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)                      at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:48)                      at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)                      at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)                      at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)                      at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)                      at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)                      at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:128)                      at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:97)                      at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:68)                      at com.sap.sdm.apiimpl.local.DeployProcessorImpl.deploy(DeployProcessorImpl.java:74)                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                      at java.lang.reflect.Method.invoke(Method.java:331)                      at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.requestRemoteCall(RemoteProxyServerImpl.java:127)                      at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.process(RemoteProxyServerImpl.java:38)                      at com.sap.sdm.apiimpl.remote.server.ApiClientRoleCmdProcessor.process(ApiClientRoleCmdProcessor.java:84)                      at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)                      at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)                      at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)                      at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)                      at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)                      at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)                      at java.lang.Thread.run(Thread.java:683)                      Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1292)                      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1887)                      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1811)                      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1695)                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1288)                      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1887)                      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1811)                      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1695)                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1288)                      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1887)                      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1811)                      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1695)                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1288)                      at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1887)                      at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1811)                      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1695)                      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1288)                      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:336)                      at com.sap.engine.services.rmi_p4.Call.getResultStream(Call.java:195)                      ... 32 more                      Caused by: java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError                      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1070)                      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1364)                      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1336)                      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1280)                      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1068)                      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1364)                      at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:376)                      at com.sap.exception.BaseExceptionInfo.writeObject(BaseExceptionInfo.java:998)                      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)                      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)                      at java.lang.reflect.Method.invoke(Method.java:331)                      at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:837)                      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1326)                      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1280)                      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1068)                      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1364)                      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1336)                      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1280)                      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1068)                      at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1364)                      at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1336)                      at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1280)                      at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1068)                      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:285)                      at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:147)                      at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:332)                      at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:201)                      at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:137)                      at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)                      at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)                      at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)                      at java.security.AccessController.doPrivileged(Native Method)                      at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)                      at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)                      For detailed information see the log file of the Deploy Service. 14/12/31 02:10:54 -  *********************************************************** Dec 31, 2014 2:10:54 AM  Info: End of log messages of the target system. Dec 31, 2014 2:10:54 AM  Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) ***** Dec 31, 2014 2:10:54 AM  Error: Aborted: development component 'Saltestapp_ear'/'sap.com'/'localhost'/'2014.12.31.02.10.28'/'0': Caught exception during application deployment from SAP J2EE Engine's deploy service: com.sap.engine.services.rmi_p4.MarshalException: Exception when trying to read the original exception.; nested exception is: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC) Dec 31, 2014 2:10:54 AM  Info: Starting to save the repository Dec 31, 2014 2:10:54 AM  Info: Finished saving the repository for 74 ms. Dec 31, 2014 2:10:54 AM  Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process. Dec 31, 2014 2:10:54 AM  Error: ---------------- At least one of the Deployments failed ---------------
    Kind Regards,
    Vishal Sobti

    Hi Vihsal,
    Can you please try to kill this from Operating System level. One more question, are you deploying this first time? Reason of asking this question is your below error code.
    "ERROR: Not deployed. Deploy Service returned ERROR:   com.sap.engine.services.rmi_p4.MarshalException: Exception when trying to read the original exception.; nested exception is:   java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.microsoft.sqlserver.jdbc.StreamError at com.sap.engine.services.rmi_p4.P4ObjectBrokerClientImpl.getException"
    Could you please also confirm about the database please.
    Please try the below step as well if not done yet
    Go to SDM Directory and enter the below
    sdm jstartup "mode=integrated"
    Thanks,
    Hamendra

  • Error " TR should have atleast one  line item "

    Hi,
    While trying to create TO for the TR , system through the error " TR should have atleast one  line item "
    but the TR have the line item.
    pls trhu some light. actually it properly working in development server but not working in production.

    Hi
    Thos error message does not make any sense if what you are saying is true in that the TR does have one line item.
    The only thing I can think of is Has the stock situation changed since the TR was created.
    Do you in fact have any stock?
    Check the TR in LB02 to make sure it is OK
    I hope that this helps
    Frenchy

  • ERROR:Atleast one entry could not be found in object buffer

    Hi All,
    need help urgernlty.
    When i try to change the binding for any task for an BO.
    get the below error
    "Atleast one entry could not be found in object buffer"
    please help me the issue as it is holding my development which is very critical.
    Thanks
    Tarmeem

    HI,
    I have checked all the methods and attributes
    they are implemented and relased.
    But still get that error
    Please guide me how to get rid of this issue
    Regards.
    Tarmeem

  • Getting an error " Atleast one entry could not be found in object buffer"

    Hi All,
    I m facing an peculiar problem while executing a custom Function Module.I have written a custom FM to create a service request and fetch the obj ID and return it back.When i tested the same in debugging mode everything is working fine. But when i execute it directly, It is giving me an error saying " Atleast one entry could not be found in object buffer" at the bottom of the screen and return parameters are not displayed.
    Any pointers on this would be of great help.
    Thanks,
    Eureka

    Hi Phani,
    PFB the source code. Please look in to this at your convenient time..
    FUNCTION ZSERVICE_TICKET_INC_EDIORDERS.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(ZPROCESS_TYPE) TYPE  CRMT_PROCESS_TYPE
    *"  EXPORTING
    *"     REFERENCE(ZOBJECT_ID) TYPE  CRMT_OBJECT_ID_DB
    * PARAMETER QUANTITY TYPE CRMT_SCHEDLIN_QUAN.
    * DATA DECLARATION FOR LOCAL VARIABLES
      DATA : lv_header_guid        TYPE                   GUID_32,
             lv_header_guid16      type                   guid_16,
             lv_item_guid          TYPE                   guid_32,
             lv_sched_guid         TYPE                   guid_32,
             lt_header_guid16      type                   CRMT_OBJECT_GUID_TAB,
             wa_header_guid16      like line of           lt_header_guid16.
      DATA:  itab_header           TYPE STANDARD TABLE OF bapibus20001_header_ins,
             itab_created_process  TYPE STANDARD TABLE OF bapibus20001_header_ins,
             itab_objects_to_save  TYPE STANDARD TABLE OF bapibus20001_guid_dis,
             itab_partner          TYPE STANDARD TABLE OF bapibus20001_partner_ins,
             itab_input_fields     TYPE STANDARD TABLE OF bapibus20001_input_fields,
             itab_return           TYPE STANDARD TABLE OF bapiret2,
             lt_orderadm_h         type                   CRMT_ORDERADM_H_WRKT.
    * DATA DECLARATION WORKAREAS
    DATA:   wa_header             TYPE                   bapibus20001_header_ins,
             wa_partner            TYPE                   bapibus20001_partner_ins,
    *         wa_item               TYPE                   bapibus20001_item,
    *         WA_SCHEDLIN_I         TYPE                   BAPIBUS20001_SCHEDLIN,
             ls_inputfields        TYPE                   bapibus20001_input_fields,
             wa_objects_to_save    LIKE                   LINE OF itab_objects_to_save.
    *         wa_pricing            TYPE                   bapibus20001_pricing,
    *         wa_sales              TYPE                   bapibus20001_sales,
    *         wa_shipping           TYPE                   bapibus20001_shipping,
    *         wa_product_i          TYPE                   bapibus20001_product.
    *         wa_schedlin_i    LIKE LINE OF lt_schedlin_i,
    *         wa_schedlines   LIKE LINE OF lt_schedlines,
    DATA:   wa_created_process    LIKE LINE OF itab_created_process,
             itab_saved_objects    TYPE STANDARD TABLE OF bapibus20001_object_id,
             wa_saved_objects      LIKE LINE OF itab_saved_objects,
             gc_x TYPE c.
             gc_x = 'x'.
    * CREATION OF HEADER GUID
      CALL FUNCTION 'GUID_CREATE'
        IMPORTING
          ev_guid_16 = lv_header_guid16
          ev_guid_32 = lv_header_guid.
      CLEAR : wa_header.
    data: temp type  CRMT_OBJECT_GUID_TAB.
    *temp = (CRMT_OBJECT_GUID_TAB)lv_header_guid16.
    * Passing the respective values from the Header table to internal table.
      wa_header-guid          =  lv_header_guid.
    *  zprocess_type           = 'ZSC'.
      wa_header-process_type  =  zprocess_type.
    *  wa_header-description = 'MY S2D ORDER'.
      APPEND wa_header TO itab_header.
    *Appending the values to the ITAB_HEADER.
    *      ls_inputfields-ref_guid =  LV_HEADER_GUID.
    *      ls_inputfields-REF_KIND = 'A'.
    *      ls_inputfields-objectname = 'ORDERADM_H'.
    **     ls_inputfields-logical_key = ' '.
    *      ls_inputfields-fieldname = 'PROCESS_TYPE'.
    *      APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
    *      CLEAR ls_inputfields.
    * HEADER PARTNER DETAILS
      wa_partner-ref_guid = lv_header_guid.
      wa_partner-ref_kind = 'A'.
      wa_partner-ref_partner_handle = '0001'.
      wa_partner-partner_fct = '00000001'.
      wa_partner-partner_no =  '1000007'.
      wa_partner-no_type = 'BP'.
      wa_partner-display_type  =  'BP'.
      APPEND wa_partner TO itab_partner.
    * APPENDING THE ITAB_PARTNER TO INPUT_FIELDS
      ls_inputfields-ref_guid =  lv_header_guid.
      ls_inputfields-ref_kind = 'A'.
      ls_inputfields-objectname = 'PARTNER'.
      ls_inputfields-logical_key = '0001'.
      ls_inputfields-fieldname = 'REF_PARTNER_HANDLE'.
      APPEND ls_inputfields TO itab_input_fields.
      CLEAR ls_inputfields.
    ****PARTNER_FCT*********************************
      ls_inputfields-ref_guid =  lv_header_guid.
      ls_inputfields-ref_kind = 'A'.
      ls_inputfields-objectname = 'PARTNER'.
      ls_inputfields-logical_key = '0001'.
      ls_inputfields-fieldname = 'PARTNER_FCT'.
      APPEND ls_inputfields TO itab_input_fields.
      CLEAR ls_inputfields.
    ****PARTNER_NO**********************************
      ls_inputfields-ref_guid =  lv_header_guid.
      ls_inputfields-ref_kind = 'A'.
      ls_inputfields-objectname = 'PARTNER'.
      ls_inputfields-logical_key = '0001'.
      ls_inputfields-fieldname = 'PARTNER_NO'.
      APPEND ls_inputfields TO itab_input_fields.
      CLEAR ls_inputfields.
    ****NO_TYPE*************************************
      ls_inputfields-ref_guid =  lv_header_guid.
      ls_inputfields-ref_kind = 'A'.
      ls_inputfields-objectname = 'PARTNER'.
      ls_inputfields-logical_key = '0001'.
      ls_inputfields-fieldname = 'NO_TYPE'.
      APPEND ls_inputfields TO itab_input_fields.
      CLEAR ls_inputfields.
    ****DISPLAY_TYPE********************************
      ls_inputfields-ref_guid =  lv_header_guid.
      ls_inputfields-ref_kind = 'A'.
      ls_inputfields-objectname = 'PARTNER'.
      ls_inputfields-logical_key = '0001'.
      ls_inputfields-fieldname = 'DISPLAY_TYPE'.
      APPEND ls_inputfields TO itab_input_fields.
      CLEAR ls_inputfields.
    *****KIND_OF_ENTRY*******************************
    *      ls_inputfields-ref_guid =  LV_HEADER_GUID.
    *      ls_inputfields-REF_KIND = 'A'.
    *      ls_inputfields-objectname = 'PARTNER'.
    *      ls_inputfields-logical_key = '0001'.
    *      ls_inputfields-fieldname = 'KIND_OF_ENTRY'.
    *      APPEND ls_inputfields TO ITAB_INPUT_FIELDS.
    *      CLEAR ls_inputfields.
    *Calling a standard BAPI to create SALES OREDER using the filled internal tables.
      CALL FUNCTION 'BAPI_BUSPROCESSND_CREATEMULTI'
        TABLES
              header          = itab_header
    *          item            = itab_item
              return          = itab_return
              partner         = itab_partner
              input_fields    = itab_input_fields
              created_process = itab_created_process.
    *         APPOINTMENT     = ITAB_APPOINTMENT
    *         TEXT            = ITAB_TEXT
    *          scheduleline    = lt_schedlin_i
    *         pricing         = itab_pricing
    *          sales           = itab_sales
    *          shipping        = itab_shipping
    *          product         = itab_product_i.
      READ TABLE itab_created_process INTO wa_created_process WITH KEY guid = lv_header_guid BINARY SEARCH.
      wa_objects_to_save-guid = wa_created_process-guid.
    * Appending the Guid of the SALES ORDER to be saved to the internal table
      APPEND wa_objects_to_save TO itab_objects_to_save.
    *   Calling standard BAPI to save the process.
      CALL FUNCTION 'BAPI_BUSPROCESSND_SAVE'
        EXPORTING
          update_task_local = space
          save_frame_log    = gc_x
        TABLES
          objects_to_save   = itab_objects_to_save
          saved_objects     = itab_saved_objects
          return            = itab_return.
    * Calling the Standard BAPI to Commit the transcation.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    wa_header_guid16 = lv_header_guid16.
    append wa_header_guid16 to lt_header_guid16.
    * Calling CRM_ORDER_READ to get the object id and add line item to the order
    CALL FUNCTION 'CRM_ORDER_READ'
        EXPORTING
         IT_HEADER_GUID                    =  lt_header_guid16
        IMPORTING
          ET_ORDERADM_H                     = lt_orderadm_h
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    data: object_id type CRMT_OBJECT_ID_DB,
          wa_orderadm_h like line of lt_orderadm_h.
    read table lt_orderadm_h into wa_orderadm_h WITH KEY guid = lv_header_guid.
    object_id = wa_orderadm_h-object_id.
    Zobject_id = wa_orderadm_h-object_id.
    WRITE: / 'Object ID: ',object_id.
    ENDFUNCTION.

  • How to see Active customers that are having atleast one Sales Order?

    Dear Friends,
    How can we see all active customers in the system, means customers those are having atleast one sales order.
    How to see

    It depends on which role this customer might have on the sales order. If it's a Sold-to, then you can run a query by VBAK-KUNNR, otherwise VBPA table will have all other partner types (use POSNR = 000000 to see only the header-level partners). Most likely there will be a lot of records. You might want to run the query in batches or limit the selection. Then download the results to Excel and there you can delete the duplicates and get a list of the unique customer numbers.
    MCTE will help only if the corresponding info structure (S003) is being updated correctly. Also it has only sold-to customers.

  • Getting input for atleast one variable present in the report

    Hi All,
    I want to create a report with the below requirement.
    If user didn't enter the value for any of the customer exit varaibles(ZCALDAY, ZCALMNTH and ZCALYEAR), then it should not allow user to generate the report. It should give a message or popup and return to the selection screen for getting the value for the input variable. Basically, it should get input for atleast one variable.
    Please help me in this issue.
    Regards,
    Yokesh Kumar.

    Hi All,
    I have written the below code for my requirement.
    when 'zcalday' or 'zcalmnth' or 'zcalyear'.
          DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT,
                      count type i.
          IF I_STEP = 3.
            count = 0.
            LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = 'zcalday' or VNAM = 'zcalmnth' or VNAM = 'zcalyear'.
              IF LOC_VAR_RANGE-LOW is initial.
                count = count + 1.
              ENDIF.
            ENDLOOP.
            if count EQ 3.
              CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                EXPORTING
                I_CLASS = 'RSBBS'
                I_TYPE = 'I'
                I_NUMBER = '000'
                I_MSGV1 = 'Please give inout for atleast one varialbe''.
                RAISE no_replacement.
             endif.
          ENDIF.
    Is there any fault in the below code? Please let me know if there is anything to correct...
    Regards,
    Yokesh Kumar.

  • Data File-- atleast one member from each dimension is it mandatory??

    Is it mandatory to have atleast one member each dimension in the data file that is used for loading into the Cube?If we leave one member from a dimension is it going to create a problem?So, If I want to load with different data files for different members of measures & is there any way to avoid extraneous member ( from one Dimension, the reason is cuz there are 2 dimensions out of which one may need not be actually included in the text file ) in the data file??Your views about this will be appreciated!!Thanks

    In a load rule file, you can create something called a header - which can be used to specify member(s) that do not appear in the data file.To specify a header, choose Options / Data Load Settings / Header Definition. The caveat is that you can only choose one member from the missing dimension - you cannot specify multiple members from the same dimension. If that is the case, then the members will have to be in the data file.Regards,Jade---------------------------------Jade ColeSenior Business Intelligence ConsultantClarity [email protected]

  • Why java does not force to declare atleast one abstract method

    hi,
    i can define an abstract class without declaring any abstract method in that class. But why wud i do this ? i mean when i have decided that a particular class should be inherited by other subclass and subclass should porvide implementation then there should be atleast one method in the abstract super class which requires implementation.
    All i want to know is why java does not force to declare atleast one abstract method in abstract class.
    there may be some situations where this restriction can create problem if it is like that then can anybody give some example.
    manish

    hi,
    i didn't get u.
    u r trying to say that i have an abstract class with
    only static methods then my questions is why wud
    declare such a class as 'abstract' class? because a
    static method can't be abstract also. Even then if
    somebody want to define such a class with only static
    methods then compiler should force him to declare
    atleast one abstract method which can be implemented
    by subclass, because as i said before if sumbody
    decide to define a class abstract then he wants that
    it should be inhereted but as u r saying a class with
    only static methods then it should not be an abstract
    class it can be a simple class.there's no functional reason, really... actually, factory-like classes are often defined the way Ceci described
    "abstract" only ensures that nobody can ever get an instance of that class (as a matter of fact, what would be the point of getting an instance, if no instance method exists ?)

  • SAP Business One - Queries -  Combining Documents in a Query

    Hello,
    I'm trying to create a query where I can see (minimally) the following:
    1. Sales Order "DocNum" and  "DocDueDate"
    2. Delivery "DocNum" and "DocDueDate"
    I would need the above information on the same row (as they relate to one another) on the query. The purpose, should you need to know, is to determine whether our Shipping Department is shipping our orders when they need to be shipped or not.
    I have tried using the below Query, but for some reason or another, it doesn't seem to be matching up the documents Plus, it appears to be pulling up the same Sales Order document multiple times with a Delivery No. that doesn't correspond with it...
    SELECT distinct T0.[DocNum], T0.[DocDueDate], T1.[DocNum], T1.[DocDueDate]
    FROM ODLN T0 , ORDR T1
    WHERE T1.[DocDueDate]  =[%0]
    Is it even possible to create a query that combines two separate, but related documents?

    Hi,
    It is absolutely possible. Try this:
    SELECT distinct T0.[DocNum], T0.[DocDueDate], T1.[DocNum], T1.[DocDueDate]
    FROM dbo.ODLN T0
    INNER JOIN dbo.RDR1 T2 ON T2.TrgetEntry = T0.DocEntry
    INNER JOIN dbo.ORDR T1 ON T1.DocEntry = T2.DocEntry
    WHERE T1.[DocDueDate]  =[%0]
    Thanks,
    Gordon
    P.S. I have moved your thread to the right forum. Please do not use Training for none training thread.

  • Reg: Excluding one day from the daily schedule process chain

    Hi All,
    I have a process chain scheduled daily except Sunday i.e. from Monday to Saturday. Now i want to exclude Saturday from the daily scheduling.
    Any idea how we can do that. Early response will be highly appreciated.
    Best regards

    Hi,
    Restrict chain Scheduling on Sundays/Holidays
    Create a factory calender using TCode SCAL or ask your basis team to create one.
    In this calender mark all days except the day you dont want the chain to run as workday.
    Now while scheduling the process chain make use of this calender and restrict it to run only on the workdays.
    There is a setting in the start process of the PC by which your chain wont run in sundays/holidays based on calendar or run only on workdays as defined in the factory calendar.
    Go to PC > start process > change selection  > Date/time. Here enter the date from which the chain should be scheduled and then click the Restrictions button at the bottom. There u can check the option "Dont execute job on sundays or holidays.
    Hope this helps.
    Thanks,
    JituK

  • Reg; Webi Reporting Queries

    Hi Gurus.
    1. How to add 6 months to the current date in Webi report..
    2. My report is having last one year data,  I want to display only one month report from the Sys date..
    Regards
    L k Vepuri

    Relative months are poor in Webi. You're better creating something at the universe level. I've created a topic on the BOB forum that discusses relative dates in both SQL Server and Oracle:
    http://www.forumtopics.com/busobj/viewtopic.php?t=152613
    You need to be clear with your reporting requirement for a month since sysdate.
    An example of what is done at the database level:
    select DATEADD(mm,6,'2010-08-30')
    returns '2011-02-28'
    select DATEADD(dd,180,'2010-08-30')
    returns '2011-02-26'
    So while pumpactionshotgun has given you an approximation, there is currently no way for Webi to match a database's accuracy in relative months without massive high maintenance nested if statements.

  • Reg : Pass One Component's value to other component's value

    Hi all,
    I have the following code . Here I want to Pass :Pass One Component's value to other component's value
    <af:image binding="#{backingBeanScope.backing_OText.i1}"
    id="i1"
    source="#{(SkinBean.skinFamily == 'MSIE_D2I3')?'/images/d2i3Logo.gif':'/images/UDR_logo.jpg'}"
    shortDesc="Hello World"/>
    <af:spacer width="100" height="10"
    binding="#{backingBeanScope.backing_OText.s1}"
    id="s1"/>
    <af:outputText
    binding="#{backingBeanScope.backing_OText.ot1}"
    id="ot1"
    inlineStyle=" font-weight:normal; font-size:32pt; font-family:Georgia, 'Times New Roman', times, Serif;"
    value = *"Here I want to pass the value as 'Hello World' from The Image Component's ShortDesc"*
    Please give me the solution .
    Thanks inAdvance .

    since you already have the backing bean, you can try to set the value property to
    #{backingBeanScope.backing_OText.i1.shortDesc}regards,
    ~Krithika

  • Reg: sun one directory server 5.2 rreplication

    Hi,
    I have two sun one directory servers(5.2 sp4) on two different solaris machines.
    There is replication setup between them.
    Now I see some nodes are not getting updated data from the master node to the consumer node.
    when i looked into the log file, I see following message in error file.
    [12/Mar/2010:15:41:50 +0000] - WARNING<10307> - Replication - conn=-1 op=-1 msgId=-1 - Configuration warning Tombstone purging internal search is unin
    dexed in replica dc=abc,dc=com
    [12/Mar/2010:15:53:38 +0000] - ERROR<8320> - Repl. Transport - conn=-1 op=-1 msgId=-1 - [S] End Failed with response: Consumer acks are missing (825)
    if any one has come across this issue, please let me know how to solve this.
    Thanks & Regards
    Venu Gopal Maggidi

    You should upgrade to 5.2 p6 to benefit from some optimizations that will make the tombstone entries search faster.
    Check this document: http://docs.sun.com/source/820-3003/index.html
    ... and especially problem #6175472 .
    If you just have a few "Consumer acks are missing (825)" error messages, you can safely ignore them as it just a warning
    in the replication protocol due to a slow network or machine. In your case, one of the server at least is slow because it has to
    perform an unindexed search. Upgrading to v 5.2p6 will enable you to create the required indexes and matching rules so you
    don't have any more unindexed search ...

Maybe you are looking for

  • Xfdf and pdf works in Adobe Reader 6, but not with new versions 7, 8, X

    I have a xfdf file which is created by querying a SQL data base and contains data for a pdf form; it works with Adobe Reader 6, but does not work with new versions of Adobe Readers (7, 8, 9 and X). It is an intranet site running IIS 6.0 in Windows Se

  • How to configure for a remote TM backup?

    Hi, I have TM working in my home office but there are times that I have to spend extended periods away, I would like to know how I can configure my equipment and network to allow me to access the TM backup when not actually on my home LAN. Ben

  • Changes to an order not showing up in change log

    I m changing item quantity of sales order items by both Call Transaction as well as 'BAPI_SALESORDER_CHANGE', however in neither case if I open the changed order in VA02 and go to Environment->Changes menu. I dont see the changes at all. What could b

  • Ipad Streaming Netflix via HDMI Cable Again

    My Ipad quit streaming Netflix to our TV through an HDMI cable in early October, right after iOS 7 and the Netflix software update came out.  Netflix issued version 5.02 in late October, and siad that fixed the problem.  But that still did not help. 

  • Custom XMP File Info Panel; Popup fields only showing 64 values max?

    I've created a custom file info panel for use with Creative Suite (Primarily for Bridge, but works just as well for any "File Info..." aware app. I just recently noticed that there seems to be a limit to the amount of values in a Popup (aka drop down