Use of BAPI_OBJCL_CHANGE for Table VBAP

Hi All,
We are trying to update/create  the charateristic LOBM_RLZ on change/create on Additional Data screen data ( VBKD).
For this purpose we are using BAPI_OBJCL_GETDETAIL and changing the charateristic value at run time, and  further using the BAPI  BAPI_OBJCL_CHANGE to update the value.
We are changing the LOBM_RLZ value from 30 days to 50 days. On executing this we are getting the error message  "C1- 801" - LOBM_RLZ: Value "> 0 d" not found  .
Can someone kindly advise if we have missed something?
In the below code we are fetching the  pit_allocvaluesnum,  pit_allocvalueschar,  pit_allocvaluescurr table values from BAPI_OBJCL_GETDETAIL.
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
        EXPORTING
          objectkey          = l_objek
          objecttable        = 'VBAP'
          classnum           = pi_wa_classinfo-class
          classtype          = pi_wa_classinfo-classtype
          status             = pc_status
          keydate            = sy-datum
        TABLES
          allocvaluesnumnew  = pit_allocvaluesnum
          allocvaluescharnew = pit_allocvalueschar
          allocvaluescurrnew = pit_allocvaluescurr
          return             = pit_return.

Hi bossi_007 ,
The cause for the problem is conversion of the the Chararteistic values from  BAPI format to CACL format due to ISO code maintenance in the Unit of measure "Days".
Since the BAPI 'BAPI_OBJCL_CHANGE' internally calls 'BAPI_OBJCL_GETDETAIL'  to get the Old assignment values and converts them too, we get the error despite forcing the ISO code value to initial value in the table pit_allocvaluesnum before calling BAPI.
To resolve this problem we have decided to use 'BAPI_OBJCL_CREATE'  for new Assignment creation and the Function module  LVF_UPDATE_AUSP to update AUSP value for changed charateristic.
Regards
Prasuna

Similar Messages

  • How to use simple types for table column names ?

    Hi,
    can any one tell how to to use simple types for table column names?
    It is required in internationalizing of webdynpro applications.
    Regards,
    Rajesh

    Hi,
    1: define required column names in <SimpleType>
    2:use the following code to get those values
    3:bind 'text' property of Column headers to context attributes
    4:take a context attribute 'Value' as type of <SimpleType>
    5:set these values to context attributes
    IWDAttributeInfo objAttrInfo=wdContext.getNodeInfo().getAttribute(IPrivate<ViewName>View.IContextElement.VALUE);
    ISimpleTypeModifiable simple=objAttrInfo.getModifiableSimpleType();
    Map m=simple.getEnumerationTexts();
    Collection c=m.values();
    Iterator it=c.iterator();
    if(it.hasNext())
    wdContext.currentContextElement.set<att1>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att2>(it.next().toString);
    if(it.hasNext())
    wdContext.currentContextElement.set<att3>(it.next().toString);
    Regards
    LakshmiNarayana

  • An itab has been used as source for table control

    Hi,
    An itab has been used as source for table control without delete option of table control.
    Now I need to delete the row which the mouse arrow is on.
    Can I do this?
    Thanks.

    Hi Deniz,
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'DEL'.
        remove marked lines
          LOOP AT it_tabctrl
                  INTO wa_tabctrl
                  WHERE marked EQ kc_sel.
            IF sy-subrc EQ 0.
              DELETE it_tabctrl INDEX sy-tabix.
            ENDIF.
          ENDLOOP.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Using f4 help for table field in module-pool

    Hi All,
    I am using a table-control in module pool programing.
    Fields are coming from MAKT table.
    I am trrying to provide a functinality so that when choose
    a material no using f4 help for MAKT-MATNR field
    the corresponding value of MAKT-MAKTX should
    appear itself in corresponding table-control field.
    It's not happening right now.
    How I can create that functionality??
    Thanx in advance

    Hi
    Please write the custom F4 Help logic for material number in the block process on value-request. in PAI
    process on value-request.
    Search Help For UOM
      field wa_screen_fields-material  module Material_help.

  • Using a Variable for Table Name  with a cursor

    Hello All
    Is it possible to use a Parameter passed to a procedure as the table name
    in a cursor selection statment. I thought the below would work but I get
    a error. Does anyone have any ideas?? The Error is listed below to.
    Here's the code I just complied
    CREATE OR REPLACE PROCEDURE Dup_Add(NEWQATABLE IN VARCHAR2) IS
    CURSOR c1 IS SELECT MUNI,PROV FROM NEWQATABLE GROUP BY MUNI, PROV;
    c1rec c1%ROWTYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO c1rec;
    EXIT WHEN c1%NOTFOUND;
    DBMS_OUTPUT.PUT_LINE(c1rec.MUNI);
    END LOOP;
    CLOSE c1;
    END;
    Here is the errors
    LINE/COL ERROR
    3/8 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
    3/15 PL/SQL: SQL Statement ignored
    3/38 PLS-00201: identifier 'NEWQATABLE' must be declared
    5/7 PL/SQL: Item ignored
    10/3 PL/SQL: SQL Statement ignored
    10/17 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    12/3 PL/SQL: Statement ignored
    12/24 PLS-00320: the declaration of the type of this expression is
    incomplete or malformed
    LINE/COL ERROR
    Thanks
    Peter

    If you are going to have a table name or a column name as a parameter, then you have to open the cursor dynamically. The following example uses Native Dynamic SQL (NDS) to open a ref cursor dynamically. I also eliminated the group by clause, since it is intended for use with aggregate functions and you weren't using an aggregate function. Also notice that there are some other differences in terms of defining variables and fetching and so forth.
    SQL> CREATE TABLE test_table
      2  AS
      3  SELECT deptno AS muni,
      4         dname  AS prov
      5  FROM   dept
      6  /
    Table created.
    SQL> CREATE OR REPLACE PROCEDURE Dup_Add
      2    (newqatable IN VARCHAR2)
      3  IS
      4    TYPE cursor_type IS REF CURSOR;
      5    c1 cursor_type;
      6    c1muni NUMBER;
      7    c1prov VARCHAR2 (20);
      8  BEGIN
      9    OPEN c1 FOR 'SELECT muni, prov FROM ' || newqatable;
    10    LOOP
    11      FETCH c1 INTO c1muni, c1prov;
    12      EXIT WHEN c1%NOTFOUND;
    13      DBMS_OUTPUT.PUT_LINE (c1muni || ' ' || c1prov);
    14    END LOOP;
    15    CLOSE c1;
    16  END;
    17  /
    Procedure created.
    SQL> SHOW ERRORS
    No errors.
    SQL> SET SERVEROUTPUT ON
    SQL> EXECUTE dup_add ('test_table')
    10 ACCOUNTING
    20 RESEARCH
    30 SALES
    40 OPERATIONS
    PL/SQL procedure successfully completed.

  • Urgent help needed in Using German Umlauts for Table names

    I created a table with Umlauts But i am not able to select from
    this table.I am also not able to drop this table as i get
    invalid character error.What setting has to be set.The NLS is I
    believe GERMAN_GERMANY.WE8ISO8859P1

    Pl do not post duplicate threads - insert dont work in Workflow
    Srini

  • Can substitution strings be used for table name references?

    Hi,
    I was wondering if it's possible to use substituion strings for table names in SQL queries. This would allow for me to edit all references to a table at one location. For instance, if a table name or dblink changed, I could edit the substitution string or application item to ensure all the queries reference the new table.
    For example:
    select * from &table1.
    table1 would be the substitution string for the actual table name
    I know this is possible if I used a pl/sql function returning a query, but I would much rather use a substition string in a SQL query.
    Thanks in advance.
    Brian

    i think not
    because how create the fields of * in this case
    in the other because all is dynamic, i think that you obtain only an error

  • Recommendations for use of Row Store Tables

    Hi ABAP on HANA Gurus,
    I think by this time, most of us are aware of the difference between Row Store and Column store in SAP HANA ( Column store actually uses an internal memory layout, which is highly optimized for column operations such as search and aggregation.)
    Recommendation from SAP is to always use Column store for tables with Business Data (i.e. Master Data and Transaction data ) within SAP HANA and Row Store to be used very selectively for Application server system tables. I have these queries :
    1. What kind of system tables are referred here ?
    2. Can we use Row store for Configuration tables ? In this case, we can optimize the query by using SELECT SINGLE * for required condition.
    3. For Side car scenarios, where in we may have SAP ERP on Classical d/b and required Tables/data are replicated to HANA by SLT, then I understand that SLT would automatically decide which tables will be Column Store and Row store.
    4. Are the recommendations different for Suite on HANA ? I think a Hybrid Row and Column store is used here to provide optimizations in the OLTP system.
    5. So, what is the approach to be followed when we are doing any Native HANA development and we need to create few Custom tables. Although by default, they need to be Column store, are there any special cases to be considered for Row store ?
    Thanks,
    Suma

    Hello Suma,
    What kind of system tables are referred here ?
    Tables like TRDIR, DD02L etc. where attributes of meta data are stored
    Can we use Row store for Configuration tables ? In this case, we can optimize the query by using SELECT SINGLE * for required condition.
    Yes. In the case of configuration tables, number of records are few  and all the fields are normally queried. So I think SELECT SINGLE * should not be a problem.
    For Side car scenarios, where in we may have SAP ERP on Classical d/b and required Tables/data are replicated to HANA by SLT, then I understand that SLT would automatically decide which tables will be Column Store and Row store.
    In SLT transaction IUUC_REPL_CONTENT, we can set the target table storage type as raw store. The default will be column store.
    Are the recommendations different for Suite on HANA ? I think a Hybrid Row and Column store is used here to provide optimizations in the OLTP system.
    Correct. Storage attributes of all the standard tables will be set by SAP during migration. For custom tables, we can update it in Technical settings. I think it is column store by default here also.
    So, what is the approach to be followed when we are doing any Native HANA development and we need to create few Custom tables. Although by default, they need to be Column store, are there any special cases to be considered for Row store ?
    The custom table used for storing few records of non-numeric attribute data may be created as raw store. All others should be column store.
    Thanks,
    Venu

  • Header1 size is required for Table Column header

    Hi Friends,
    I wanted to use Header1 size for Table column headers. Pls help me how to do.
    Now I am using external label with Header1 size to the table but labels are not aligned properly with the table columns.
    Regards,
    Lakshmi Prasad.

    Hi,
    For headers design property is not their so you cant change the font. Other option is to change the theme (Not tried personally).
    Regards
    Ayyapparaj

  • How to use the TableSorter for two tables at the same view?

    Hello,
    I am using the TableSorter object in order to sort Dynpro tables.
    Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
    I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...

    Hi Roy,
    Constructor of TableSorter
    public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
    So, you have to create instance of TableSorter class for each table on the view.
    best regards, Maksim Rashchynski.

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • Proper use of a Lookup table and adaptations for NET

    Hello,
    I need to create a few lookup tables and I often see the following:
    create table Languages
    Id int identity not null primary key (Id),
    Code nvarchar (4) not null,
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageId int not null,
    Title nvarchar (400) not null,
    insert into Languages (Id, Code, Description)
    values (1, "en", "English");
    This way I am localizing Posts with language id ...
    IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?
    So instead I would use the following:
    create table Languages
    Code nvarchar (4) not null primary key (Code),
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageCode nvarchar (4) not null,
    Title nvarchar (400) not null,
    insert into Languages (Code, Description)
    values ("en", "English");
    The NET applications usually use language code so this way I can get a Post in English without using a Join.
    And with this approach I am also maintaining the database data integrity ...
    This could be applied to Genders table with codes "M", "F", countries table, transaction types table (should I?), ...
    However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.
    And know it is even possible to map to Flag Enums so have a Many to Many relationship in an ENUM.
    That helps in NET code but in fact has limitations. A Languages table could never be mapped to a FLags Enum ...
    ... An flags enum can't have more than 64 items (Int64) because the keys must be a power of two.
    A SOLUTION
    I decided to find an approach that enforces database data integrity and still makes possible to use enums so I tried:
    create table Languages
    Code nvarchar (4) not null primary key (Code),
    Key int not null,
    Description nvarchar (120) not null,
    create table Posts
    Id int identity not null primary key (Id),
    LanguageCode nvarchar (4) not null,
    Title nvarchar (400) not null,
    insert into Languages (Code, Key, Description)
    values ("en", 1, "English");
    With this approach I have a meaningfully Language code, I avoid joins and I can create an enum by parsing the Key:
    public enum LanguageEnum {
    [Code("en")
    English = 1
    I can even preserve the code in an attribute. Or I can switch the code and description ...
    What about Flag enums? Well, I will have not Flag enums but I can have List<LanguageEnum> ...
    And when using List<LanguageEnum> I do not have the limitation of 64 items ...
    To me all this makes sense but would I apply it to a Roles table, or a ProductsCategory table?
    In my opinion I would apply only to tables that will rarely change over time ... So:
        Languages, Countries, Genders, ... Any other example?
    About the following I am not sure (They are intrinsic to the application):
       PaymentsTypes, UserRoles
    And to these I wouldn't apply (They can be managed by a CMS):
       ProductsCategories, ProductsColors
    What do you think about my approach for Lookup tables?
    Thank You,
    Miguel

    >>IMHO, this is not the best scheme for Languages table because in a Lookup table the PK should be meaningful, right?<<
    Not necessarily. The choice to use, or not to use, a surrogate key in a table is a preference, not a rule. There are pros and cons to either method, but I tend to agree with you. When the values are set as programming terms, I usually use a textual value
    for the key. But this is nothing to get hung up over.
    Bear in mind however, that this:
        create table Languages
          Id int identity not
    null primary key
    (Id),     
          Code nvarchar (4)
    not null, Description nvarchar
    (120) not
    null,
    is not equivalent to
        create table Languages
          Code nvarchar (4)
    not null primary
    key (Code),     
          Description nvarchar (120)
    not null,
    The first table needs a UNIQUE constraint on Code to make these solutions semantically the same. The first table could have the value 'Klingon' in it 20 times while the second only once.
    >>However I think it is common to use int as PK in lookup tables because it is easier to map to ENUMS.<<
    This was going to be my next point. For that case, I would only change the first table to not have an identity assigned key value, as it would be easier to manage at the same time and manner as the enum.
    >>. A Languages table could never be mapped to a FLags Enum ...<<
    You could, but I would highly suggest to avoid any values encoded in a bitwise pattern in SQL as much as possible. Rule #1 (First Normal Form) is partially to have 1 value per column. It is how the optimizer thinks, and how it works best.
    My rule of thumb for lookup (or I prefer the term  "domain" tables, as really all tables are there to look up values :)), is all data should be self explanatory in the database, through data if at all possible. So if you have a color column,
    and it contains the color "Vermillion", and all you will ever need is the name, and you feel like it is good enough to manage in the UI, then great. But bear in mind, the beauty of a table that is there for domain purposes, is that you can then store
    the R, G, and B attributes of the vermillion color (254, 73, 2 respectively, based on
    http://www.colorcombos.com/colors/FE4902) and you can then use that in coding. Alternate names for the color could be introduce, etc. And if UserRoles are 1, 2, 3, and 42 (I have seen worse), then
    definitely add columns. I think you are basically on the right track.
    Louis
    Without good requirements, my advice is only guesses. Please don't hold it against me if my answer answers my interpretation of your questions.

  • Using 1 dataset for multiple tables in the report

    All,
    Say I have a stored procedure with some parameters and the result set looks like this:
    State   ACount    BCount     Description
    VA           10            20           Category1
    TX           15            25           Category1
    VA           30            40           Category2
    TX           40            50           Category2
    NY           5              5             Category3
    NJ           10            10           Category3
    Now, what I want is 3 separate tablixes (tables) in my report using my stored procedure (just 1 dataset for all these tables). I want the result to be dispalyed something like this:
    Category1 (1st tablix)
    State   ACount    BCount     Description
    VA           10            20           Category1
    TX           15            25           Category1
    Category2 (2nd tablix)
    VA           30            40           Category2
    TX           40            50           Category2
    Category3 (3rd tablix)
    NY           5              5             Category3
    NJ           10            10           Category3
    I want Category1, Category2 and Category3 to be 3 different tablixes in my report using the same stored procedure.
    How can I accomplish that? Let me know if you have any questions.

    Hi SqlCraze,
    I also design the report using Report Designer. So you can directly do the same steps as I post.
    In the fourth step that "Insert the corresponding fields to the second table" means directly insert State, ACount, BCount and Description fields. Please note that the list control is used to split one table into several tables based on the
    Description group: one table only displays the values when Description=Category1, one table only displays the values when Description=Category2, another table only displays the values when Description=Category3. We needn't add filters in the table, just add
    the list.
    For more information about the list control in Reporting Services, please refer to the following blog:
    http://blogs.technet.com/b/microsoft_in_education/archive/2013/03/09/ssrs-using-a-list-item-to-display-details.aspx
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Unable to create Entity objects for tables in TimesTen database using ADF

    Hi,
    I am not able to create Entity and View objects for tables in TimesTen database using ADF. I have installed TimesTen client on my machine.
    I have created a database connection by using connection type as "Generic JDBC" and giving driver class and JDBC URL. I am attaching screen shot of the same.
    I am right clicking on Model project and selecting New option after that I am selecting ADF Business components and in it I am selecting Business components from tables and there I am querying for tables.I am getting list of tables and when I am trying to create a Entity object from the table after clicking finish Jdev is closing by itself giving an error.
    Can anyone please help me how to create Entity objects for tables using TimesTen as database.I might be missing some jars or the way I am creating connection might be wrong or any plugins required to connect to TimesTen.

    What is the actual error being given by Jdev? Are you sure that the JDBC connection is using the TimesTen JDBC driver JAR and not some other JDBC driver or the Generic JDBC/ODBC bridge?
    Is ADF even supported with TimesTen?
    Chris

  • Use 'SDPARTNERLIST' as a table for pick fields

    Hi Experts,
    can we use 'SDPARTNERLIST' as a table for pick the fields paertenr function, partner and name1 in scripts,
    or is any reference table for these fields,,, if any could u tell me fields and tables
    Edited by: Alvaro Tejada Galindo on Feb 25, 2008 5:46 PM

    Hi,
    You acn code your select in the following no>
    select single vorna nachn from PA0002 into
                       (gv_vorna , gv_nachn )
    where pernr = ......
              subty = ...... and
              OBJPS = ...... and
              SPRPS = ......and
              ENDDA = ......and
              BEGDA = ......and
              SEQNR = ........
    Whatever key fields data available you can pass it in the where clause of the select query.
    Then after the select query, you can pass in the same variables in the script gv_vorna , gv_nachn to print the data.
    Hope this helps.
    Regards,
    JLN

Maybe you are looking for

  • Request forward with a PDF file is not working in 8.1 SP2?

              Hi,           I have a servlet that forwards the request to a pdf file. The code works fine           in WL61. However when I ran the servlet in WL8.1SP2, all I get is a blank page.           However, instead of PDF I forward the request to

  • Drop Down in ALV  ABAP and NOT in OO - ABAP

    Hello Everyone.... I m workin on an ALV which is in simple ABAP and not in OO-ABAP. There is some selection criteria on the first screen , as soon as the user fulfills the requirement an ALV GRID is displayed in which the last column is editable.   B

  • JProgressBar in JTable overwrites cell bounds

    Problem: When the user resizes the table (during a update) so that the entire JProgressBar will no longer fit in the cell, the text of the JProgressBar will overwrite its surrounding controls. Sample code: import javax.swing.table.*; import java.awt.

  • Creating DMEE file as well as an outgoing PAYEXT idoc for payments

    We have everything set up for the creation of the DME file in the DMEE. The file is also getting created in one of the directories. Now one of the requirements is to create a PAYEXT idoc for the same information in the payment run? Can someone let me

  • Box wise packing slip

    hi, the packing scenario is a under: 1. finished items packed in a small box. One item in one samll box. 2. the small boxes are then packed into corrugated box. suppose 10 small boxes are packed in one corrugated box. 3. then corrugated boxes are pac