Update header document with selected currency value in JSP

Hi all,
I have custom dropdown box for currency in checkout JSP page. 
If I change currency selection in dropdown, how can I capture this value and update currency in header.
Venkat

Hello Venkat
I am not sure if I got your actual query here.
Where exactly have you placed your custom Drop-down field as of now?
I guess, if you have a custom Drop-down field, you will also have its action-handlers.  Why cant you use the action handler for value selection or value change, and then pass the new currency value selected and trigger another update on the Order?
Hope this helps.
Regards, Vishal

Similar Messages

  • Updating a document with category metadata using updateDocument(): error!

    I have studied the sample code and the API docs, and I feel pretty sure I am coding it according to the docs, but I cannot successfully update a document with category metadata. I always get a MetaDataSchemaInvalid exception.
    My process goes like this:
    1. Upload a new file, creating a new document publicobject.
    2. Create a CATEGORY_DEFINITION with all the metadata name/value pairs I wish to write.
    3. Call FileManager.updateDocument() with this CATEGORY_DEFINITION.
    My process differs from the docs in that I am first uploading the document, and then adding the metadata as a second step. I want to get it working this way to make my system more modular. I do not want to make my upload method dependent upon metadata attributes, and vice versa.
    Step 1 is working fine. The document is being uploaded to the right folder. Good to go.
    Step 3 is where I get the error. If the error is my fault, then it must be a result of what I do in step 2. The structure of my CATEGORY_DEFINITION must be messed up.
    Here is my code for creating the CATEGORY_DEFINITION. The Document class is my own entity that encapsulates the binary data for a document, as well as the metadata attributes that are to be assigned to the document once it is uploaded into Content Services. We don't need to worry about where the data comes from. Just assume the raw data is correct.
    public NamedValue[] newCategoryAttributeDefinition(Document document, String categoryDisplayName) throws WebserviceClientException {
    /* Get the category attribute name-value pairs as a 2-D array. */
    Map metadataMap = document.getMetadataParser().getAttributeNameMapping();
    List categoryDefinitionAttributeList = new ArrayList();
    for(Iterator i = metadataMap.entrySet().iterator(); i.hasNext();) {
    Map.Entry entry = (Map.Entry)i.next();
    String name = "CUSTOM_" + (String)entry.getKey();
    Object value = entry.getValue();
    if(value != null) {
    categoryDefinitionAttributeList.add(new Object[] { name, value });
    Object[][] categoryDefinitionAttributeArray = new Object[categoryDefinitionAttributeList.size()][];
    int index = 0;
    for(Iterator i = categoryDefinitionAttributeList.iterator(); i.hasNext();) {
    Object[] value = (Object[])i.next();
    categoryDefinitionAttributeArray[index++] = value;
    /* Create the NamedValue tree that describes this category's attribute values. */
    Long categoryId = new Long(getCategoryClassId(categoryDisplayName));
    NamedValue[] categoryAttributeDefinition = WebserviceUtils.newNamedValueArray(new Object[][] {
    { Options.CATEGORY_ID, categoryId },
    { Options.CATEGORY_DEFINITION_ATTRIBUTES, WebserviceUtils.newNamedValueArray(categoryDefinitionAttributeArray) }
    NamedValue[] categoryDefinition = WebserviceUtils.newNamedValueArray(Options.CATEGORY_DEFINITION, categoryAttributeDefinition);
    return categoryDefinition;
    And below is the resulting CATEGORY_DEFINITION, as seen in a jdb debugger.
    -- The OPT.CATEGORY_ID value is equal to the ID column in ODMV_SCHEMACATEGORY, otherwise known as the category class id.
    -- My OPT.CATEGORY_DEFINITION_ATTRIBUTES tree for this document has the 4 attributes that I want to set. The category has more than these 4 attributes; I am not populating every attribute. None of the attributes are required, and all are editable. I don't need to include every attribute in my CATEGORY_DEFINITION, even if the values are null, do I? Also, all the attribute names start with "CUSTOM_", which I believe is necessary - right?
    -- I am setting only the OPT.CATEGORY_ID and OPT.CATEGORY_DEFINITION_ATTRIBUTES. Am I missing some other required attribute?
    http-8888-Processor5[1] http-8888-Processor5[1] dump categoryDefinition
    categoryDefinition = {
    instance of oracle.ifs.fdk.NamedValue(id=2562)
    http-8888-Processor5[1] dump categoryDefinition[0]
    categoryDefinition[0] = {
    name: "OPT.CATEGORY_DEFINITION"
    value: instance of oracle.ifs.fdk.NamedValue[2] (id=2559)
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[0]
    categoryDefinition[0].value[0] = {
    name: "OPT.CATEGORY_ID"
    value: instance of java.lang.Long(id=2558)
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[0].value.toString()
    categoryDefinition[0].value[0].value.toString() = "60068"
    http-8888-Processor5[1] dump categoryDefinition[0].value[1]
    categoryDefinition[0].value[1] = {
    name: "OPT.CATEGORY_DEFINITION_ATTRIBUTES"
    value: instance of oracle.ifs.fdk.NamedValue[4] (id=2570)
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[1].value[0]
    categoryDefinition[0].value[1].value[0] = {
    name: "CUSTOM_From"
    value: "SA"
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[1].value[1]
    categoryDefinition[0].value[1].value[1] = {
    name: "CUSTOM_Footer Number"
    value: "PRM 34-318"
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[1].value[2]
    categoryDefinition[0].value[1].value[2] = {
    name: "CUSTOM_To"
    value: "PROJECT TEAM"
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    http-8888-Processor5[1] dump categoryDefinition[0].value[1].value[3]
    categoryDefinition[0].value[1].value[3] = {
    name: "CUSTOM_Subject"
    value: "Riverside Energy Resource Center Meeting Minutes-Internal"
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2564)
    class$oracle$ifs$fdk$NamedValue: instance of java.lang.Class(reflected class=oracle.ifs.fdk.NamedValue, id=1975)
    After building this CATEGORY_DEFINITION, I go on to attempt an update to the document with this information. Here is the method I call. I always fall into the catch(), and the error dump follows the code snippet. Unfortunately, the error doesn't tell me a lot about what's wrong. That's why I am asking for help in spotting any conspicuous errors in my CATEGORY_DEFINITION.
    public Item addCategoryToDocument(Item documentItem,
    NamedValue[] categoryDefinition)
    throws WebserviceClientException {
    FileManager fileManager = getWebserviceClient().getFileManager();
    Item documentItemWithCategory = null;
    try {
    documentItemWithCategory = fileManager.updateDocument(documentItem.getId(), categoryDefinition, null);
    } catch(Exception e) {
    throw new WebserviceClientException("Could not update document with category definition.", e);
    return documentItemWithCategory;
    http-8888-Processor4[1] http-8888-Processor4[1] dump e
    e = {
    detailedErrorCode: "ORACLE.FDK.AggregateError"
    errorCode: "ORACLE.FDK.AggregateError"
    exceptionEntries: instance of oracle.ifs.fdk.FdkExceptionEntry[1] (id=2691)
    info: null
    serverStackTraceId: ""
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2694)
    class$oracle$ifs$fdk$FdkException: instance of java.lang.Class(reflected class=oracle.ifs.fdk.FdkException, id=1972)
    org.apache.axis.AxisFault.log: instance of org.apache.commons.logging.impl.Log4JLogger(id=2695)
    org.apache.axis.AxisFault.faultCode: instance of javax.xml.namespace.QName(id=2696)
    org.apache.axis.AxisFault.faultSubCode: null
    org.apache.axis.AxisFault.faultString: "ORACLE.FDK.AggregateError:ORACLE.FDK.AggregateError"
    org.apache.axis.AxisFault.faultActor: null
    org.apache.axis.AxisFault.faultDetails: instance of java.util.Vector(id=2698)
    org.apache.axis.AxisFault.faultNode: null
    org.apache.axis.AxisFault.faultHeaders: null
    org.apache.axis.AxisFault.class$org$apache$axis$AxisFault: instance of java.lang.Class(reflected class=org.apache.axis.AxisFault, id=1928)
    java.rmi.RemoteException.serialVersionUID: -5148567311918794206
    java.rmi.RemoteException.detail: null
    java.lang.Exception.serialVersionUID: -3387516993124229948
    java.lang.Throwable.serialVersionUID: -3042686055658047285
    java.lang.Throwable.detailMessage: null
    java.lang.Throwable.cause: null
    java.lang.Throwable.stackTrace: instance of java.lang.StackTraceElement[76] (id=2699)
    http-8888-Processor4[1] dump e.exceptionEntries[0]
    e.exceptionEntries[0] = {
    detailedErrorCode: "ORACLE.FDK.MetadataSchemaInvalid"
    errorCode: "ORACLE.FDK.MetaDataError"
    id: 348018
    info: null
    serverStackTraceId: ""
    __equalsCalc: null
    __hashCodeCalc: false
    typeDesc: instance of org.apache.axis.description.TypeDesc(id=2705)
    class$oracle$ifs$fdk$FdkExceptionEntry: instance of java.lang.Class(reflected class=oracle.ifs.fdk.FdkExceptionEntry, id=1973)
    }

    1 – For an existing document, how do I determine what category instances have been applied to it and their attribute values
    FdkSession session = …;
    // Consider we have an existing item myDoc of type document
    Item myDoc = …;
    CommonManager cm = Managers.getCommonManager(session);
    AttributeRequest[] requestedAttributes = new AttributeRequest[]
      // The Categories associated with this Document, if any
    new AttributeRequest(Attributes.CATEGORIES,
      // sub attributerequest
      new AttributeRequest[] {
        // the actual attributes name/values for the category instance – returns a namedvalue array
        new AttributeRequest(Attributes.CUSTOM_ALL,null),
        // the actual category class for the category instance – returns an item
        new AttributeRequest(Attributes.CATEGORY_CLASS_OBJECT,null)
    myDoc = cm.getItem(myDoc.getId(), requestedAttributes);
    log(myDoc); /* output could look like:
    (Item) 14385 DOCUMENT sample3.doc
    requested attributes ...
    CATEGORIES (Item[])=
    (Item) 14387 CATEGORY
    requested attributes ...
    CUSTOM_ALL (NamedValue[])=
    CUSTOM_14352=true (Boolean)
    CUSTOM_14353=Internal Only Pending Review (String)
    CATEGORY_CLASS_OBJECT (Item)=
    (Item) 14354 CATEGORY_CLASS 5044-14351
    This means, that for document sample3.doc, we have 1 instance of a category object applied to it.
    The category object instance has id 14387. The instance is of a category class object type 14354. The instance has two attributes with internal names CUSTOM_14352, and CUSTOM_15353. The values of these attributes are of type Boolean and String respectively.
    2 - How do I update an attribute value of an existing category instance applied to an item
    FdkSession session = …;
    // Consider we have an existing item myDoc of type document
    Item myDoc = …;
    .. perform code along the lines of that shown in step1 above to determine existing category instance info on the document ..
    FileManager fm = Managers.getFileManager(session);
    NamedValue[] categoryInstanceAttributes = new NamedValue[] {
      // use the internal attribute name for all attributes
      new NamedValue("CUSTOM_14352", Boolean.FALSE),
      new NamedValue("CUSTOM_14352", "Company Confidential")
    NamedValue[] categoryDef = new NamedValue[] {
      // the category instance that we are updating
    new NamedValue(Options.UPDATE_CATEGORY_ID,new Long(14387)),
    // the updated values of the category instance
      new NamedValue(Options.CATEGORY_DEFINITION_ATTRIBUTES, categoryInstanceAttributes)
    NamedValue[] documentDef = new NamedValue[] {
    new NamedValue(Options.CATEGORY_DEFINITION, categoryDef)
    requestedAttributes = ...
    myDoc = fm.updateDocument(myDoc.getId(),documentDef,requestedAttributes) ;
    3 – For a document item X, what is the associated category configuration which could include
    a) what are the category objects I can apply on it (either explicitly restricted by way of ALLOWED_CATEGORIES on the folder configuration, or any site/domain category by way of ALLOW_ALL_CATEGORIES)
    b) is there any attribute overrides
    c) is there any enforced categories
    FdkSession session = …;
    // Consider we have an existing item myDoc of type document
    Item myDoc = …;
    CommonManager cm = Managers.getCommonManager(session);
    AttributeRequest[] categoryObjectAttributes = new AttributeRequest[]
    // What is the category object class name
    new AttributeRequest(Attributes.CLASS_NAME,null),
      // What is the category classobject display name
    new AttributeRequest(Attributes.DISPLAY_NAME,null),
    // get attributes inherited and introduced by category object
    new AttributeRequest(Attributes.METADATA_ATTRIBUTES,
      new AttributeRequest[]
        // Attribute internal name
        new AttributeRequest(Attributes.ATTRIBUTE_NAME,null),
        // Attribute display name
        new AttributeRequest(Attributes.DISPLAY_NAME,null),
        new AttributeRequest(Attributes.ATTRIBUTE_TYPE,null),
        new AttributeRequest(Attributes.ATTRIBUTE_DEFAULT,null),
        new AttributeRequest(Attributes.ATTRIBUTE_ENUMERATION,null),
        new AttributeRequest(Attributes.ATTRIBUTE_REQUIRED,null),
        new AttributeRequest(Attributes.ATTRIBUTE_SETTABLE,null),
        new AttributeRequest(Attributes.ATTRIBUTE_UPDATEABLE,null),
        new AttributeRequest(Attributes.ATTRIBUTE_HIDDEN,null),
        new AttributeRequest(Attributes.ATTRIBUTE_PROMPTED,null),
        new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDEABLE,null),
    AttributeRequest[] overrideAttributes = new AttributeRequest[]
    // id of the attribute to be overridden
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_ATTRIBUTE,null),
    // id of the category class object to which this attribute override applies
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_CATEGORY_CLASS,null),
    // new default value
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_DEFAULT,null),
    // should attribute now be prompted
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_PROMPT,null),
    // is the attribute now required
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_REQUIRED,null),
    // can instances of this attribute have there value updated
    new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_SETTABLE,null),
    AttributeRequest[] requestedAttributes = new AttributeRequest[]
    // what is the category configuration for the item
    new AttributeRequest(Attributes.CATEGORY_CONFIGURATION,
      new AttributeRequest[]
        // Is the category configuration enabled
         new AttributeRequest(Attributes.CONFIGURATION_ENABLED,null),
         // Can the category configuration be overridden or is it final
        new AttributeRequest(Attributes.CONFIGURATION_FINAL,null),
        // What are the required categories for the category configuration and associated attribute information
        new AttributeRequest(Attributes.REQUIRED_CATEGORIES,categoryObjectAttributes),
        // Can any categories in the site be utilized
        new AttributeRequest(Attributes.ALLOW_ALL_CATEGORIES,null),
        // or .. are we restricting the categories to only the following
        new AttributeRequest(Attributes.ALLOWED_CATEGORIES,categoryObjectAttributes),
        // are there any attribute overrides on category object attributes for this category config?
        new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDES,overrideAttributes)
    log(cm.getItem(myDoc.getId(), requestedAttributes); /*
    If ALLOW_ALL_CATEGORIES is set to true, any category in the domain can be utilized that is not abstract. To determine these, the domain item has a property CATEGORY_CLASSES that returns all category objects in the domain. It also has a property ROOT_CATEGORY_CLASSES which returns just the top level categories (those that have no custom category superclass). You would create a sub AttributeRequest[] checking for CLASS_ABSTRACT when requesting the appropriate categories attribute from the domain.
    If ALLOW_ALL_CATEGORIES is set to false, the applicable categories objects that can be utilized on items contained in the folder is determined by the items contained in the ALLOWED_CATEGORIES attribute of the category configuration.
    Finally, the REQUIRED_CATEGORIES attribute list the category items that must be applied to all new items added to the folder.
    4 – How do I manually apply an instance of a category to an existing item
    FdkSession session = …;
    // Consider we have an existing item myDoc of type document
    Item myDoc = …;
    .. use techniques in step3 above to determine what category objects that you planning to apply to the document ..
    .. if the category configuration on the item has ALLOW_ALL_CATEGORIES set to true, you can use any category in the system
    .. otherwise, you must use a category defined in the allowed categories list
    .. the code here is essentially the same as step2 above
    .. you must utilize internal attribute names, and specify the id of the category class object
    FileManager fm = Managers.getFileManager(session);
    NamedValue[] categoryInstanceAttributes = new NamedValue[] {
      // use the internal attribute name for all attributes
      new NamedValue("CUSTOM_14352", Boolean.FALSE),
      new NamedValue("CUSTOM_14352", "Company Confidential")
    NamedValue[] categoryDef = new NamedValue[] {
      // the id of the category object class for which this new category will be an instance of
    new NamedValue(Options.CATEGORY_CLASS_ID,new Long(14354)),
    // the updated values of the category instance
      new NamedValue(Options.CATEGORY_DEFINITION_ATTRIBUTES, categoryInstanceAttributes)
    NamedValue[] documentDef = new NamedValue[] {
    new NamedValue(Options.CATEGORY_DEFINITION, categoryDef)
    requestedAttributes = ...
    myDoc = fm.updateDocument(myDoc.getId(),documentDef,requestedAttributes);
    // Note – it is possible for one to peform creation, updating, and deletion of various category instances for an existing item in the fileManager updateDocument call!
    // you simply supply multiple Options.CATEGORY_DEFINITIONs to the fm.updateDocument call along with any Options.REMOVE_CATEGORY_IDs 5 – How do I specify a category instance when creating a new item
    FdkSession session = …;
    .. use techniques in step3 above to determine what category objects that you planning to apply to the new document ..
    .. you get the category configuration information from the destination folder!!!
    Item destinationFolder = …;
    CommonManager cm = Managers.getCommonManager(session);
    AttributeRequest[] requestedAttributes = new AttributeRequest[]
    // what is the category configuration for the item
    new AttributeRequest(Attributes.CATEGORY_CONFIGURATION,
    destinationFolder = cm.getItem(destinationFolder.getId(),requestedAttributes);.. if the category configuration on the folder item has ALLOW_ALL_CATEGORIES set to true, you can use any category in the system
    .. otherwise, you must use a category defined in the allowed categories list
    .. the code here is essentially the same as step2 above, just we are using createDocument and document definitions now
    .. you must utilize internal attribute names, and specify the id of the category class object
    FileManager fm = Managers.getFileManager(session);
    NamedValue[] categoryInstanceAttributes = new NamedValue[] {
      // use the internal attribute name for all attributes
      new NamedValue("CUSTOM_14352", Boolean.FALSE),
      new NamedValue("CUSTOM_14352", "Company Confidential")
    NamedValue[] categoryDef = new NamedValue[] {
      // the id of the category object class for which this new category will be an instance of
    new NamedValue(Options.CATEGORY_CLASS_ID,new Long(14354)),
    // the attribute values for this new category instance
      new NamedValue(Options.CATEGORY_DEFINITION_ATTRIBUTES, categoryInstanceAttributes)
    String destinationFile = "sample.doc";
    requestedAttributes = new AttributeRequest[]
      new AttributeRequest(Attributes.URL,null)
    Item docDef = fm.createDocumentDefinition(new NamedValue[]
      new NamedValue(Attributes.NAME, destinationFile),
    },requestedAttributes);
    String defURL = ...  // get URL from document definition
    doFileUpload(...)  // upload file using http put to defURL
    NamedValue[] documentDef = new NamedValue[] {
      new NamedValue(Options.USE_SAVED_DEFINITION,new Long(docDef.getId())),
    new NamedValue(Options.DESTFOLDER, new Long(destinationFolder.getId())),
    // specify character set if appropriate
      new NamedValue(Attributes.DOCUMENT_CHARACTER_SET,"ISO-8859-1"),
      // specify language if appropriate
    new NamedValue(Attributes.DOCUMENT_LANGUAGE,"ENGLISH"),
    // apply category instance information
    new NamedValue(Options.CATEGORY_DEFINITION, categoryDef),
    requestedAttributes = ...
    Item doc = fm.createDocument(documentDef,null, requestedAttributes);
    // Note – it is possible for one to peform creation of multiple category instances on a document at the same time
    // you simply supply multiple Options.CATEGORY_DEFINITIONs to the fm.createDocument call
    // Note – that if a folder has a category configuration containing required categories, and you do not specify
    // all applicable category definitions on createDocument, you will receive an FdkException along the lines of
    // missing metadata. You can catch this exception, and retry the createDocument call supplying the valid category definition(s).

  • JOB_SUBMIT   with Selection Screen Value

    I have a requirement :
    with other select-options and parameters, i have two radio button, Foreground and Background:
    when Background radio button will be selected program should be scheduled as a background job.
    How i will pass selection screen value in JOB_SUBMIT ??
    Cheers.
    Srikanta

    Hi ,
    Try This
    *& Report  ZMMVB_PG_SL_CHANGE_BDC
    REPORT  zmmvb_pg_sl_change_bdc.
    TABLES : mara,t133a,marc.
    DATA i_t133a LIKE t133a OCCURS 0 WITH HEADER LINE.
    DATA : BEGIN OF itab OCCURS 0,
            matnr LIKE marc-matnr,
            werks LIKE marc-werks,
            ekgrp LIKE marc-ekgrp,
           END OF itab.
    DATA : BEGIN OF itab1 OCCURS 0,
             matnr LIKE marc-matnr,
             werks LIKE marc-werks,
             dispo LIKE marc-dispo,
    END OF itab1.
    DATA : fname LIKE ibipparms-path ,
           ename TYPE string,
           mode.
    DATA: BEGIN OF it_t133a OCCURS   0,
            bilds LIKE t133a-bilds,
            pstat LIKE t133a-pstat,
            guifu LIKE t133a-guifu,
            auswg LIKE t133a-auswg,
          END OF it_t133a.
    DATA:  ctr TYPE i,
           ctr_s(2) TYPE n,
           wrk(35),
           ch(1),
           viewno(2) TYPE n,
           guifu LIKE t133a-guifu.
    DATA: BEGIN OF it_views OCCURS 30.
            INCLUDE STRUCTURE mbildtab.   " Selection Views
    DATA: END OF it_views.
    DATA bdc_data LIKE bdcdata OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN BEGIN OF BLOCK b WITH FRAME TITLE text-000.
    PARAMETERS : ek RADIOBUTTON GROUP rg1 ,
                 sl RADIOBUTTON GROUP rg1
    SELECTION-SCREEN END OF BLOCK b.
    SELECTION-SCREEN BEGIN OF BLOCK c WITH FRAME TITLE text-001.
    PARAMETERS : fg RADIOBUTTON GROUP rg2 DEFAULT 'X',
                 bg RADIOBUTTON GROUP rg2.
    SELECTION-SCREEN END OF BLOCK c.
    START-OF-SELECTION.
      IF fg = 'X'.
        mode = 'A'.
      ELSEIF bg = 'X'.
        mode = 'E'.
      ENDIF.
      IF ek = 'X'.
        guifu = 'SP09'.
        PERFORM bdc_ekgrp_change.
      ELSEIF sl = 'X'.
        guifu = 'SP12'.
        PERFORM bdc_mrpcontroller_change.
      ENDIF.
    *&      Form  BDC_EKGRP_CHANGE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_ekgrp_change .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = sy-repid
          dynpro_number = sy-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = fname.
      IF NOT ( fname IS INITIAL ) .
        ename = fname .
      ENDIF.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = ename
          filetype                = 'DAT'
        TABLES
          data_tab                = itab
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF itab[] IS NOT INITIAL.
        LOOP AT itab.
          REFRESH bdc_data.
          IF itab-matnr NA sy-abcde AND itab-matnr NA '/*-_.'.
            UNPACK itab-matnr TO itab-matnr.
          ELSE.
            TRANSLATE itab-matnr TO UPPER CASE.
          ENDIF.
          SELECT SINGLE * FROM mara WHERE matnr = itab-matnr.
          IF sy-subrc NE 0.
            CONTINUE.
          ENDIF.
          PERFORM view_routine.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'RMMG1-MATNR'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'RMMG1-MATNR'
                                        itab-matnr.
          CONCATENATE 'MSICHTAUSW-DYTXT(' viewno ')' INTO wrk.
          CONDENSE wrk NO-GAPS.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                          wrk.   "'MSICHTAUSW-DYTXT(08)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
          CONCATENATE 'MSICHTAUSW-KZSEL(' viewno ')' INTO wrk.
          CONDENSE wrk NO-GAPS.
          PERFORM bdc_field       USING   wrk  "'MSICHTAUSW-KZSEL(08)'
                                          'X'.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0080'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'RMMG1-WERKS'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
          PERFORM bdc_field       USING 'RMMG1-WERKS'
                                        itab-werks.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=BU'.
    *  PERFORM bdc_field       USING 'MAKT-MAKTX'
    *                                '"HEX BOLT M16X1.5X100,B8.8,BP"'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'MARC-EKGRP'.
    *  PERFORM bdc_field       USING 'MARA-MEINS'
    *                                'NOS'.
          PERFORM bdc_field       USING 'MARC-EKGRP'
                                        itab-ekgrp.
    *  PERFORM bdc_field       USING 'MARA-MATKL'
    *                                '1702'.
    *  PERFORM bdc_field       USING 'MARC-USEQU'
    *                                '3'.
    *  PERFORM bdc_field       USING 'MARC-KORDB'
    *                                'X'.
          CALL TRANSACTION 'MM02' USING bdc_data MODE mode UPDATE 'S'.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " BDC_EKGRP_CHANGE
    *&      Form  BDC_MRPCONTROLLER_CHANGE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM bdc_mrpcontroller_change .
      CALL FUNCTION 'F4_FILENAME'
        EXPORTING
          program_name  = sy-repid
          dynpro_number = sy-dynnr
          field_name    = ' '
        IMPORTING
          file_name     = fname.
      IF NOT ( fname IS INITIAL ) .
        ename = fname .
      ENDIF.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename                = ename
          filetype                = 'DAT'
        TABLES
          data_tab                = itab1
        EXCEPTIONS
          file_open_error         = 1
          file_read_error         = 2
          no_batch                = 3
          gui_refuse_filetransfer = 4
          invalid_type            = 5
          no_authority            = 6
          unknown_error           = 7
          bad_data_format         = 8
          header_not_allowed      = 9
          separator_not_allowed   = 10
          header_too_long         = 11
          unknown_dp_error        = 12
          access_denied           = 13
          dp_out_of_memory        = 14
          disk_full               = 15
          dp_timeout              = 16
          OTHERS                  = 17.
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      IF itab1[] IS NOT INITIAL.
        LOOP AT itab1.
          REFRESH bdc_data.
          IF itab1-matnr NA sy-abcde AND itab1-matnr NA '/*-_.'.
            UNPACK itab1-matnr TO itab1-matnr.
          ELSE.
            TRANSLATE itab1-matnr TO UPPER CASE.
          ENDIF.
          SELECT SINGLE * FROM mara WHERE matnr = itab1-matnr.
          IF sy-subrc NE 0.
            CONTINUE.
          ENDIF.
          PERFORM view_routine.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0060'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'RMMG1-MATNR'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '/00'.
          PERFORM bdc_field       USING 'RMMG1-MATNR'
                                        itab1-matnr.
          CONCATENATE 'MSICHTAUSW-DYTXT(' viewno ')' INTO wrk.
          CONDENSE wrk NO-GAPS.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0070'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                           wrk.         "'MSICHTAUSW-DYTXT(11)'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
          CONCATENATE 'MSICHTAUSW-KZSEL(' viewno ')' INTO wrk.
          CONDENSE wrk NO-GAPS.
          PERFORM bdc_field       USING   wrk          "'MSICHTAUSW-KZSEL(11)'
                                        'X'.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '0080'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'RMMG1-WERKS'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=ENTR'.
          PERFORM bdc_field       USING 'RMMG1-WERKS'
                                        itab1-werks.
          PERFORM bdc_dynpro      USING 'SAPLMGMM' '4000'.
          PERFORM bdc_field       USING 'BDC_OKCODE'
                                        '=BU'.
    *      PERFORM bdc_field       USING 'MAKT-MAKTX'
    *                                    '"HEX BOLT M16X1.5X100,B8.8,BP"'.
    *      PERFORM bdc_field       USING 'MARA-MEINS'
    *                                    'NOS'.
    *      PERFORM bdc_field       USING 'MARC-DISGR'
    *                                    '701'.
    *      PERFORM bdc_field       USING 'MARC-EKGRP'
    *                                    'A00'.
          PERFORM bdc_field       USING 'BDC_CURSOR'
                                        'MARC-DISPO'.
    *      PERFORM bdc_field       USING 'MARC-DISMM'
    *                                    'PD'.
          PERFORM bdc_field       USING 'MARC-DISPO'
                                        itab1-dispo.
    *      PERFORM bdc_field       USING 'MARC-DISLS'
    *                                    'MB'.
          CALL TRANSACTION 'MM02' USING bdc_data MODE mode UPDATE 'S'.
        ENDLOOP.
      ENDIF.
    ENDFORM.                    " BDC_MRPCONTROLLER_CHANGE
    *&      Form  bdc_dynpro
    *       text
    *      -->PROGRAM    text
    *      -->DYNPRO     text
    FORM bdc_dynpro USING program dynpro.
      CLEAR bdc_data.
      bdc_data-program  = program.
      bdc_data-dynpro   = dynpro.
      bdc_data-dynbegin = 'X'.
      APPEND bdc_data.
    ENDFORM.                        "BDC_DYNPRO
    *        Insert field                                                  *
    FORM bdc_field USING fnam fval.
      CLEAR bdc_data.
      bdc_data-fnam = fnam.
      bdc_data-fval = fval.
      APPEND bdc_data.
    ENDFORM.                    "BDC_FIELD
    *&      Form  VIEW_ROUTINE
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM view_routine .
      CLEAR viewno.
      SELECT * FROM t133a INTO CORRESPONDING FIELDS OF TABLE i_t133a
                    WHERE bilds = '21' AND guifu LIKE 'SP%'  .
      LOOP AT i_t133a .
        ch = i_t133a-pstat.
        IF mara-vpsta NA ch .
          DELETE i_t133a     .
          CONTINUE .
        ENDIF .
      ENDLOOP.
      SORT i_t133a BY guifu ASCENDING .
      LOOP AT i_t133a .
        viewno = viewno + 1 .
        IF i_t133a-guifu = guifu .
          EXIT .
        ENDIF .
      ENDLOOP .
    ENDFORM.                    " VIEW_ROUTINE
    Regards,

  • FLQAD: assignment for documents with local currency

    Dear Gurus,
    I'm just curious with is it FLQAD assignment program uses transaction currency and since a company would normally view their cash flow statement in local currency. The FLQAD does not work for documents with zero transaction amount such as Forex valuations and this needs to be manually change using FLQAM.
    I've implemented SNote:0001127205 Local currency as leading currency and it resolve my problem above. And also i'm on ECC6. But I'm still curious as to why the standard program FLQAD only works for transaction currency. Would appreciate some insight as to why it's being design that way?

    Hi,
    I have deactivated , the check box of No forex gain loss for local currency in Global parameters.
    But system behavious is following manner.
    1. While making payment (F-53) , system fetching the exchange  rate from exchange rate table ,. NO OPTION for User input.
    But customer requirement is exchange rate will be according to user input.
    2. While clearing system ,  the difference of forex gain , system expecting differential posting besides to forex gain loss amount.
    But customer requirement is to post accounting entry would be
                  Vendor debit
                 Bank Credit
               Forex gain / loss a/c Dr.
    Please suggest , if any body has got an idea ..,
    Regards,
    Sujana

  • Create Documents with any Currency

    Hi,
    it´s possible create documents with SDK objects in any currency?
    I need create a invoice in Local Currency or System Currency depending the source.

    Hi Victor,
    Yes, you can create marketing documents through the DI API and set any currency code (...well, any currency code that already exists in the company setup). The Documents object has a DocCurrency and DocRate property for defining the currency.
    Kind Regards,
    Owen

  • Update one table with the max value of another table

    CREATE TABLE [dbo].[General](
    [a_id] int NOT NULL,
    [a_date] datetime NOT NULL,
    [c_date] datetime NULL)
    CREATE TABLE [dbo].[Specific](
    [a_id] int NOT NULL,
    [a_date] datetime NOT NULL,
    [b_id] int NOT NULL,
    [d_date] datetime NULL)
    insert into General values (111,'Jan 1 2013', null)
    insert into General values (112,'Jan 1 2013', 'Mar 10 2014')
    insert into General values (113,'Jan 1 2013', null)
    insert into General values (114,'Feb 1 2013', null)
    insert into General values (115,'Feb 1 2013', 'Apr 1 2013')
    insert into General values (116,'Feb 1 2013', 'Jan 1 1970')
    insert into Specific values (111,'Jan 1 2013',1, 'Jan 1 2013')
    insert into Specific values (111,'Jan 1 2013',2, 'Feb 1 2013')
    insert into Specific values (111,'Jan 1 2013',3, 'Mar 1 2013')
    insert into Specific values (112,'Jan 1 2013',1, 'Jan 1 2013')
    insert into Specific values (112,'Jan 1 2013',2, 'Feb 1 2013')
    insert into Specific values (113,'Jan 1 2013',1, 'Jan 1 1970')
    insert into Specific values (114,'Feb 1 2013',1, null)
    insert into Specific values (115,'Feb 1 2013',1, 'Jan 15 2013')
    insert into Specific values (115,'Feb 1 2013',2, 'Feb 15 2013')
    insert into Specific values (116,'Feb 1 2013',1, 'Jan 30 2013')
    insert into Specific values (116,'Feb 1 2013',2, 'Jan 1 1970')
    I want to update General.c_date only when the values are null or Jan 1 1970 from the maximum value of Specific.d_date as long as the maximum is not null or Jan 1 1970.    The two tables join on a_id and a_date.  In the example  above 
    a_id = 111 and a_date = Jan 1 2013 should have c_date = Mar 1 2013 and a_id = 116 and a_date = Feb 1 2013 should have c_date = Jan 30 2013.
    lg

    Try the below:
    CREATE TABLE [dbo].[General](
    [a_id] int NOT NULL,
    [a_date] datetime NOT NULL,
    [c_date] datetime NULL)
    CREATE TABLE [dbo].[Specific](
    [a_id] int NOT NULL,
    [a_date] datetime NOT NULL,
    [b_id] int NOT NULL,
    [d_date] datetime NULL)
    insert into General values (111,'Jan 1 2013', null)
    insert into General values (112,'Jan 1 2013', 'Mar 10 2014')
    insert into General values (113,'Jan 1 2013', null)
    insert into General values (114,'Feb 1 2013', null)
    insert into General values (115,'Feb 1 2013', 'Apr 1 2013')
    insert into General values (116,'Feb 1 2013', 'Jan 1 1970')
    insert into Specific values (111,'Jan 1 2013',1, 'Jan 1 2013')
    insert into Specific values (111,'Jan 1 2013',2, 'Feb 1 2013')
    insert into Specific values (111,'Jan 1 2013',3, 'Mar 1 2013')
    insert into Specific values (112,'Jan 1 2013',1, 'Jan 1 2013')
    insert into Specific values (112,'Jan 1 2013',2, 'Feb 1 2013')
    insert into Specific values (113,'Jan 1 2013',1, 'Jan 1 1970')
    insert into Specific values (114,'Feb 1 2013',1, null)
    insert into Specific values (115,'Feb 1 2013',1, 'Jan 15 2013')
    insert into Specific values (115,'Feb 1 2013',2, 'Feb 15 2013')
    insert into Specific values (116,'Feb 1 2013',1, 'Jan 30 2013')
    insert into Specific values (116,'Feb 1 2013',2, 'Jan 1 1970')
    update A
    Set c_date = (Select MAX(d_date) From Specific B where A.a_id = B.a_id Group by a_id
    having MAX(d_date) is not null
    and MAX(d_date)<>'1970-01-01 00:00:00.000')
    From General A
    Select * From General
    Drop table general,specific
    This would cause all records in General table to get updated which is not what asker want
    see below statement
    I want to update General.c_date only when the values are null or Jan 1 1970
    from the maximum value of Specific.d_date as long as the maximum is not null or Jan 1 1970
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Reversing a document with MR8M diff value in GR/IR

    When reversing a document with MR8M, differrent amount is posted to GR/IR account and PPV account
    Actual Transaction
    Vendor 123 = 100
    GR/IR account = -80
    PPV account = -20
    After Reversal:
    Vendor 123 = -100
    GR/IR account = 78
    PPV account = 22
    Please let me know what could be the reason?
    Edited by: Rickyy on Apr 27, 2011 9:33 PM

    This sap note explains exactly my problem, but now how do I clear GR/IR account?
                         GRIR Account       PPV account
    CreditMemo     39,319.31        17,834.96
    MR8M             57,294.48     
    So I cannot clear GRIR account because of the amount difference :-S
    Thanks

  • Can NOT update video automatically with selected playlists!

    I just bought my iPod today and when I try to put some video on it, the movie does not appear anywhere.
    when I click on the Video button, the "automatically with selected playlist" option is hidden and I cant click on it, and no video title can be observed.
    Do you have to put video in to certain folder to add them?
    And how come the Automatlcally with selected playlist is hidden?

    I had the same issue, however I used this program;
    http://www.videora.com/en-us/Converter/iPod/
    I'm pasting this from the Videora site, the settings worked for me when others didn't, enjoy:
    Configuring videora converter
    0) Start Videora iPod converter.
    1) Click setup in the left nav.
    1.5) Click the profiles tab.
    2) Click new profile.
    3) Now, configure that profile:
    profile name: ipod
    in the video settings section...
    mode: MPEG-4 > CBR
    resolution: 320x240
    passes: one
    bitrate: 768 kbps (384 kbps also works)
    framerate: 29.97 fps
    in the audio settings section...
    bitrate: 128 kbps
    sample rate: Input
    channels: stereo
    4) Click apply to save the profile.
    Now, you're ready to transcode.
    1) Click convert on the left nav.
    2) Click the transcode new video button.
    3) Pick your source video. Mine was an AVI from a torrent.
    4) Under quality profile, choose "ipod", the profile you created using the steps above.
    5) Click start.
    Now you're ready to get the video on your ipod
    1) In iTunes, under the File menu, select add file to library. Find the transcoded one. By default, the transcoded videos pop out under the Videora install directory.
    2) Drag and drop to your ipod.
    Questions/observations:
    1) I haven't been able to get H264 anything to work. Is it broken? How much smaller than MPEG4 is it?
    2) 768 kbps video was about 400 megs/hour; 384 kbps video was about 231 megs/hour. I could readily see a difference in video quality.

  • Problem with Select Filter value.......

    HI all
    We have created a report on Sales cube,and Inserted the Report into work book.
    In the report we have 2 Commission codes 1.Customer,2.material.
       when we are trying to select filter values for customer Commission code,we are Gatting the Pop-up window but the system is Getting hanged, it is not showing any values also.
       We thought it is a Bex problem, but when tried other reports it is working fine.
       Suggest me any possible solution to resolve the issue
    Thanks in advance

    Little more improvement
      After deleting and re creating the indexes, the Filter values are comming but it is taking almost 10-12 min to display the values.

  • Posting document with profit segment values (FB01)

    Hi Experts,
    I have a req. to post a document with profit segment parameters in FB01. Please help me if any BAPI or FM exists for the same.
    I have searched for profit segment parameters in bapi_acc_document_post, but i didnt find any fields to pass
    BL , sales office,  curr, customer status and service fields in BAPI.
    Thanks and regards,
    Ravi

    You can use the strcuture EXTENSION1 of BAPI_ACC_DOCUMENT_POST alongwith the implementation of BTE "RWBAPI01". See the Wiki post [Business Transaction Event - RWBAPI01 - For Accounting Document Interface|http://wiki.sdn.sap.com/wiki/display/ABAP/BusinessTransactionEvent-RWBAPI01-ForAccountingDocument+Interface] for reference.

  • Update other items with the same value when when column contains Y

    CREATE TABLE TEST
       (     "QUATINTY" NUMBER(17,2),
         "AMOUNT" NUMBER(17,2),
         "ERRORRED" VARCHAR2(16 BYTE),
         "PO" VARCHAR2(12 BYTE),
         "LINE" VARCHAR2(10 BYTE),
         "SEQ" VARCHAR2(14 BYTE),
         "INVOICE" VARCHAR2(16 BYTE)
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('123',5,50,'Y','1','1','inv1');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('123',5,50,null,'1','2','inv1');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('125',5,50,null,'1','1','inv2');
    Insert into TEST (PO,QUATINTY,AMOUNT,ERRORRED,LINE,SEQ,INVOICE) values ('125',4,50,null,'1','2','inv2');If you notice by the table above what im trying to acomplish is update the errorred column with 'Y' if any of the po and invoice are the same and have a 'Y' on the errored column.
    in other words, i should end up with 'Y' in the errorred column for INV1.
    Can someone point me in the right direction i cant for the life of me figuered this one out.

    Hi,
    Here's one way:
    UPDATE     test
    SET     errorred     = 'Y'
    WHERE     NVL (errorred, 'N') != 'Y'
    AND     (po, invoice)          IN (
                              SELECT  po, invoice
                         FROM      test
                         WHERE      errorred  = 'Y'
    ;This assumes that po and invoice are not NULL. If either column can be NULL, then the solution might be a little messier, depending on the results you want, but only a little. Post some sample data (with NULLs) that shows what kinds of situations you need to handle, and the results from that sample data.

  • Updating EBAN TAble with custom field values by BAPI_PR_CREATE

    Hi all,
    My requirement is PR creation by BAPI_PR_CREATE Function Module .
    for pr item level customer added 10 fields in the EBAN table append structure CI_EBANDB. .
    i am creating PR by using Funcation module BAPI_PR_CREATE.
    In this Function Module I have to pass the structure name and field values in the EXTENTIONIN .
    what is the structure name I have to pass and how populate data in to the EBAN table.
    after that i have to create PR and updating 10 two custom field values in the EBAN Table.
    how to proceed for updating the customer field values in the eban table.
    thanks in advance.
    sri

    Hi Sri,
    better you dont use it. try this..
    example code:
    data: i_banc type bapiebanc occurs 0 with header line.
    data: i_bkn type bapiebkn occurs 0 with header line.
    data: i_ret type bapireturn occurs 0 with header line.
    data: i_band type bapieband occurs 0 with header line.
    data: i_bantx type bapiebantx occurs 0 with header line.
    data number type bapiebanc-preq_no.
    i_banc-acctasscat = par_asset.
    i_banc-short_text = 'VehicleBooking'.
    i_banc-quantity = '1'.
    i_banc-DEL_DATCAT = '1'.
    i_banc-deliv_date = par_date .
    i_banc-mat_grp = 'TRAVEL'.
    i_banc-unit = 'ST'.
    i_banc-c_amt_bapi = 100.
    i_bkn-cost_ctr = par_cost.
    i_bkn-g_l_acct = par_gl.
    i_bkn-fund = par_fund.
    i_bkn-funds_ctr = par_fund_ctr.
    append i_banc.
    append i_bkn.
    call function 'BAPI_REQUISITION_CREATE'
    exporting
    skip_items_with_error = 'X'
    importing
    number = number
    tables
    requisition_items = i_banc
    requisition_account_assignment = i_bkn
    requisition_item_text = i_bantx
    return = i_ret
    Describe table i_ret lines count.
    If count > 0.
    loop at i_ret.
    Message e000(zbooking) with i_ret-message
    endloop.
    Endif.
    if not number is initial.
    S000(zbookings) with 'Requisition number ' , number ,' created'.
    endif.
    thanks
    trinadh

  • Update report based on selected LOV value

    I've searched the forum but could not find the answer how to implement the following:
    I have a form with a popup LOV, element P203_LOCATION_ID, which is populated from a query. When the user picks a value from it, a report in the same page should be refreshed. The report has query "select * from distances where d < 1 AND l = :P203_LOCATION_ID " .
    I created a dynamic action which would refresh the report on change of P203_LOCATION_ID , but the report does not change.
    After looking here, I made a hidden variable P203_SEL_LOCATION which is populated by dynamic action on change, with javascript $v('P203_LOCATION_ID') , and then a second rule in the dynamic action should refresh the report. The query in the report is changed to use :P203_SEL_LOCATION as a parameter.
    Although, when made display-only, P203_SEL_LOCATION does change (and console.log shows the selected ID), the report does not see that change and remains empty. I tried both IR and classic report, same result.
    Any help would be appreciated, how to make change in Items visible to the report?

    Hi Mila,
    I assume that you have checked that the report refresh process is happening and that by "empty" you meant that the report was not fetching any records whereas it should have for the value you see in the page.
    It could be because the changed values is not is not yet set in the session for the report to see(report fetches the bind value of the item P203_SEL_LOCATION from the session).
    You will need to add the item's value to the session before firing the report refresh.
    One way to do that would be to add a PLSQL process as true action with the sequence order lesser than the refresh.
    In the items to submit_ , give P203_SEL_LOCATION
    And the process needn't do anything(what we wanted was the P203_SEL_LOCATION be set, which would be done before executing this PLSQL)
    BEGIN
    NULL;
    END;Hope that solves your problem

  • Performance Issue with Selection Screen Values

    Hi,
    I am facing a performance issue(seems like a performance issue ) in my project.
    I have a query with some RKFs and sales area in filters (single value variable which is optional).
    Query is by default  restricted by current month.
    The Cube on which the query operates has around 400,000 records for a month.
    The Cube gets loaded every three hours
    When I run the query with no filters I get the output within 10~15 secs.
    The issue I am facing is that,  when I enter a sales area in my selection screen the query gets stuck in the data selection step. In fact we are facing the same problem if we use one or two other characteristics in our selection screen
    We have aggregates/indexes etc on our cube.
    Has any one faced a similar situation?
    Does any one have any comments on this ?
    Your help will be appreciated. Thanks

    Hi A R,
    Goto RSRT--> Give ur query anme --> Execute =Debug
    --> No a pop up ill come with many check boxes select "Display Aggregates found" option --> now give ur
    selections in variable screen > first it will give the already existing aggregate names> continue> now after displaying all the aggregates it will display the list of objects realted to cube wise> try to copy these objects into notepad> again go with ur drill downs now u'll get the already existing aggregates for this drill down-> it will display the list of objects> copy them to notepad> now sort all the objects related to one cube by deleting duplicate objects in the note pad>goto that Infocube> context>maintain aggregates> create aggregate on the objects u copied into note pad.
    now try to execyte the report... it should work properly with out delays for those selections.
    I hope it helps you...
    Regards,
    Ramki.

  • Function Module to Update Shipment Document with FURTHER DATES

    Hi All,
    i need to update (create an event entry) with the 'Begin Plan Date' and 'End Plan Date' of one Event in the 'FURTHER DATES' TAB
    (2nd Tab) of the Shipment Document. I got to do this using the separate program after the shipment gets created from external system in ECC.
    Any ideas on how to do it? the function modules belong to the function group
    TSEG.. but am not sure which function module can cater my requirement..  or can we do it with a BDC call.
    Appreciate ur early reply...
    Regards,
    Leona

    hi,
    YOu can use fm 'HR_99S_date_plus_time_unit'.
    hope it helps
    regards,
    pawan

Maybe you are looking for

  • How do I prevent attachments from embedding into email messages in Lion on an Exchange Server?

    I work in an Exchange Server environment, one of only two Macs in a building filled with Windows machines. When I was using Snow Leopard, I had to send attachments to my fellow workers using the same mail server via plain text messages, so that the a

  • Not work correctly

     Hi  I try to update  a value   inside a table (ExTable01) but updated value  is not true.Please help. When I apply update  Saved wrong value is   891257536,00  (Column type real  False  )  but       True value is  891257560   ( -->  97352 * 9155 =  

  • Error when connect others domain the verision 8.0 a 6.1

    GWTDOMAIN.10568.1024.0: LIBGWT_CAT:1548: ERROR: Use -t server option to interoperate with sites older than 7.1

  • CCM 2.0 Log in problem

    Hi, We are using the CCM 2.0 and have an issue in which when the user clicks on the catalogue link in order to shop they receive a page that requests the user to log in. The configuration in SRM seems to be OK and all the relevant services and catalo

  • CMS for Dreamweaver and PHP with MySQL

    Hello I am at a medium level with Dreamweaver MX and 8. I have created a dynamic website running PHP and MySQL. The site sells luxury yachts (resales). What I need is a simple, not too custom code heavy content management system to allow the client t