A space is added with an entry n Database Table

Hi Gurus,
I am in process of adding a new entry to a Ztable thru BSP application. When I enter, the field (char 100) is added with a space before the value in the Dbase table.
Any suggestions would be appreciated.
Regards
Prakash

Use the below code..It will solve your problem..
Data: c_space type c value space.
SHIFT v_text RIGHT DELETING TRAILING C_SPACE.
SHIFT v_text LEFT DELETING LEADING C_SPACE.
<b>OR</b>
Use CONDENSE statement.
<i>* Reward each useful answer</i>
Raja T

Similar Messages

  • Delete entries from Database table  t71inp1

    Hi,
    I want to Delete entries from Database table  t71inp1. Its a H R Table. I want to know the exact code.
    i saw the cide delete bkpf where usnam = p_name.
    Will it work the same here. Also.
    Please let me know.
    I hope to get reply from you soon.
    where should i write the code. i.e. Tcode SE38 and directly deeleting write the code.
    Please give me some inputs. I am new to H R ABAp
    Shivakumar K B
    919886920258

    hi
    You can write a program in se38.
    create a program.
    use delete from t71inp1 where<condition> command in it.

  • Delete entry from Database table

    Hi,
    I configured one PCR scenerio in SPRO node -> business Packakes/ funtional packages-> Manager self service-> Personal Change request -> Group Change request scenerio.
    later I deleted that entry in backend, but still the same entry exist in db table "TWPC_PCR_Groups" .
    How can we delete that entry?
    thanks

    Hi,
    If you just want to delete a single entry from database table then you have to it in debug mode .
    go to se11->Give table name->Press F7( ie: display table entries)-> Goto the table contents (CTRLSHIFTF10)->Select the entry you want to delete->Give /H in the command bar ->enter into debug mode-> Give code as DELE -> save it. and press enter. Your entry will be deleted from database.
    Hope this helps..

  • How to tracke the new entries in database table ?

    Hi,
    How to tracke the new entries in database table ? is there any FM or report is there to check it ?
    regards
    vishnu

    Hi Vishnu,
    u can write a report program for this and in that use the event  :
    AT NEW <field-name> ( use primary key)
    your statements
    ENDAT
    for eg.
    loop at itab ( herfe itab must be of type of table for which u want to track new entries)
    at new matnr
    write:/ new record
    endat
    endloop.
    schedule this report in background to run in every 5 or 10 mins as per your requirement and hence changes can be tracked.
    regards
    Vinod

  • Authentication & Authorization with SSO, JAAS and Database Tables mix

    Hi,
    I'm looking for how manage Authentication & Authorization in a J2EE ADF+Struts+JSP application.
    I'm interested in use SSO for authentication (I just did it programatically & dynamically already), and now I would like to could define authorization using database tables with users, groups, profiles, individual permissions, ..., (maitanined dynamically by web application admin) throught JAZN (JAAS or however is said) but not statically defining roles, groups, users, ... in jazn xml files.
    I saw that exists the possibility to create a custom DataSourceUserManager class to manage all this, and this gave me the idea that this could be possible to do (I was thinking in make a custom Authorization API over my application tables, without JAZN) but what is better that use and extended and consolidated aprox like JAZN.
    Anybody could tell me if my idea could be possible, and realizable, and maybe give me some orientation to build this approach.
    A lot of thanks in advanced.
    And sorry, excuse my so bad english.
    See you.

    Marcel,
    Originally the idea was to create a post to only explain how to do authentication using a Servlet filter. However,
    I have recently added code to the JHeadstart runtime and generators to enable both JAAS and 'Custom' authentication AND authorization in generated applications. Therefore, this post will be made after we have released the next patch release, as it will depend on these code changes.
    We currently plan to have the patch release available sometime in the second half of May.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • List Box with Variable Entries in a Table Control

    Hi ,
       I have a requirement where a certain column F of the table control should be designed as dropdown list box. The problem is, i have to populate different entries for field F in each row of the Table control.
                                       Field List
    First Line -                   A,B,C
    Second Line -              A,B
    Third Line     -             A
    Is it possible in ABAP to achieve this . I should not use an input help. Can i achieve this with Drop down list ?
    Regards,
    Krishna Chaitanya . A

    Hi Priyaranjan,
    Assoon as you enter records and save it it gets saved , that is ok , but when you do scroll system goes to PAI , so you need to chk the value of ok_code when scroll button is pressed and write the code according to that .
    more over you need to increase the number of lines that can be displayed in a particular table control .
    Try this it may help you .
    <i>Reward points if helpful.</i>
    Regards,
    Amber S

  • Entries in Database Tables are missing

    Hi Experts,
    In ERP2004,
    I have 2 tables in different clients. The 2 tables have some entries in Client 000. But same entries are not there in the 2 table in the copied client 020. IS there any way that these table entries can be brought into client 020?
    I am familiar with SCC1 but i donot have a transport request in Client 000. How to get these entries into target client.

    Hello
    Basically depending on the type of table involved , the recommendation varies.
    Just copying table entries may lead to inconsistencies etc .
    so need to find out what made the table entries disapper.
    If after analysis if its decided that the table entries are really required , then one way is to use R3trans to copy  data across clients.
    SAP note 1942 provide the details about it
    Hope this helps
    Ravinder

  • How to log in with user credentials from database table

    Hello all.
    I have a table named users_1 in my database. This table has columns named username, password, email and userid. On userid, I have put a sequence.
    Now, I have manually made 1 row in this table, with in it the user credentials.
    How can I edit my application so that I can use these credentials to log onto the application?
    Please, a step-by-step text would make me rather happy, instead of getting a link with information that I should read. I've read most of it, and it just doesn't make any sense to me, so I prefer a guide-trough.
    Thanks..

    Hi Magali,
    You want only user from database can access your application.
    follow the steps given below.
    Step1  :  create function to authenticate users
    create or replace FUNCTION  "CUSTOM_AUTHENTICATE" (p_username in VARCHAR2, p_password in VARCHAR2)
    return BOOLEAN
    is
      l_password varchar2(4000);
      l_stored_password varchar2(4000);
      l_count number;
    begin
    select count(*) into l_count from users_1 where upper(username) = upper(p_username);
    if l_count > 0 then
       select upper(password) into l_stored_password from users_1 where upper(username) = upper(p_username);
       l_password :=  upper(p_password);
        if l_password = l_stored_password then
          return true;
        else
          return false;
        end if;
    else
      return false;
    end if;
    end;
    Step2  : create authentication scheme for your application
    Go to Application Builder->select your application->shared component->security->authentication scheme->create
    a) custom scheme : Based on a pre-configured scheme from the gallery
    b) give some name to your scheme like custom_scheme or something
    c)scheme type : database account
    d) verify function name = return CUSTOM_AUTHENTICATE
    e) go to = Login Page
    f) Logout url = f?p=&APP_ID.:101 // here 101 is login page no..so you can set your login page no.
    step3  : make this scheme as current scheme
    select your scheme and click make current
    now try to login into your application from your database users..
    Hope this will helps you,
    Thanks,
    Jitendra

  • Add entries to database tables using update function module

    Hi All,
    I have a small requirement, in which I need to update Z-tables usimg update function module in update task. In the calling program, I have gathered the data in a field symbol value of type any. I need to pass the same to that function module to update the data which is in the field symbol.
    Please guide me how to achieve this technically.
    Thanks in advance,
    Pradipta .

    Hi,
    I believe you already have evrything with you.....Start Coding the same and come back with any Coding issue.
    I believe you will not be able to pass the Field Symbol in FM Interface.....You need to pass the Variable which Field Symbol is referring....

  • Want to develop form with field not in Database table.

    Hi.
    I am developing one form for leave request.
    Now i have created two tables..
    1. Employee detail
    2.Leave detail
    Now i am creating form based on leave detail right now.
    This table is taking reference of Employee Detail table as reference table.(employee no is foreign key in Leave detail table).
    Now in form based on Leave detail table,i have taken employee name as combo field,now when i select any employee name,based on employee name other realated detail from employee detail table also i can populate in form based on Leave detail table.
    Is it possible.?As i am not able to add any field or button other than which is already there in table(Leave Detail table)
    I hope i have clearly mentioned my requirement,
    Need help.
    Thank you.

    You can in fact add another field which is not connected to any column to in the Leave table. Give it any name. Make sure that the checkboxes "updatable" and "insertable" are NOT checked, otherwise the form will try and include it in its SQL statements to update/insert data.
    You then have to use the "Additional PL/SQL" tab - "before form is displayed" section on the form to fill in the value of the field. Use code like
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => 'A_<your field name>',
    p_value => <your value>);
    p_session.save_session;
    where
    - p_session is available in most custom PL/SQL blocks - It refers to a portal stored session that is used to store all the internal variables.
    - block_name is either DEFAULT for simple forms or MASTER or DETAIL for master/detail forms
    - p_attribute_name is the name of the field you want to set BUT (very important) prefixed with A_
    - p_value is the actual value - here you will use your pl/sql variable.

  • How to Copy complete structure of a table with data from one database table to another databse table

    I need a sql query to copy structure of table with data from production table of ONLINEBTREKDB database to production table of Archive database.
    I tried this query
    select * into Archive.dbo.Production from ONLINEBTREKDB.dbo.Production p
    but problem is I am able to copy the table schema and data but not able to copy constraints(PK)
    Any Help?
    seema

    You've multiple options
    1. Use generate scripts wizard available in SQL management studio. This is particularly helpful when you want to script out lot of objects. You can also choose to script data as well inside this. This can be launched by right clicking the db, choosing tasks
    -> generate scripts and then selecting required options inside the wizard
    2. Use object explorer and right click and script out table. You can also use search functionality to find object you want inside object explorer
    http://visakhm.blogspot.in/2013/02/object-filtering-using-ssms-object.html
    3. Use query based on INFORMATION_SCHEMA views like TABLES,COLUMNS,CONSTRAINT_COLUMN_USAGE etc to generate the script
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Issue with fields of a database table

    Hi All,
    While browsing through database table T2515, i have observed that in 'fields' tab, there are only 2 fields visible ie MANDT and WWSSN.
    When we see the contents of table, there will be one more additional field called BEZTEK.
    Now my requirement is to retrieve data from both WWSSN and BEZTEK fields.
    How to define internal table and how to write select statement in such cases?
    Moreover, from where this BEZTEK will get populate, when we see the contents of table in se11?
    Regards
    Pavan

    Hi,
    BEZTEK may be coming from the Text table related to T2515.  See the text table of T2515 (SE11 -> Menu option Goto -> Text Table).
    Regards
    Vinod

  • Problem with saving data in database table.

    i have ceated on screen prgram...
    screen contains one text field of leth 40(type c)...
    if user enters some text in that and enters save button it will store in dbtable which is created by me(ztable)...
    but that text storing in big letters...even i enter the samll letters....
    i want to store as user enters in  fiels on screen
    woe can i do that?

    go to screen(painter) of that program and double clik on that field
    u will get a small screen there u check the upper/lower letters check box
    <b>Reward Points if USEFUL</b>

  • Entries from database table

    Hi all,
    I need to fetch the first record from a data base table. I don't have any primary keys. Infact without using any primary keys i just need to select the first records from the table.
    I have used select single and select up to 1 rows (I should not use order by primary), some times it gives me the correct result and sometimes not.
    Can you tell me any other way to do it.
    Thanks.
    Mungala.

    Hi Praveena,
    Can you try
    SELECT * from DBtable....
    <b>if sy-subrc = 0.
    exit.
    endif.
    ENDSELECT.</b>
    Reward points if useful.
    Regards,
    Atish

  • Table got re-created with 0 entries

    Hello All,
                     In ECC system after refresh BDLS is taking too long time(24hrs to 36hrs) becase of that as per SDN blogs to improve BDLS performance i build the index on few tables mentioned below using SE11 & SE14 t-codes, after completing BDLS I dropped those indexes while dropping BKPF table got re created with 0 entries but other tables are having entries. i have followed sam eprocess for all the tables, after that i tried in sandbox system that system also while dropping BKPF got re-created with ' 0 'entries ,Could you please let me know why it has re-created with 0 entries.
    BKPF   
    CE11000 
    COBK   
    COEP   
    COES  
    COFIS  
    GLPCA  
    GLPCP   
    GLPCT   
    MKPF   
    SRRELROLES

    Thanks for the Prompt response,
    The service entry was created this month
    I did try by checking the "Deliv. Compl." indicator on the PO and then tried to reverse the service entry but I get the same error i.e SE541
    Thanks

Maybe you are looking for

  • OSX 10.9 Mavericks is there any way to hide servers which always appear in finder after login (hide login items doesn't work as stardered)

    hi all my boss has just got himself a nice new mac and wants to connect it on to my windows domain at work, no problems there it's all connect fine, one thing we done was to map a few of our network drives on our domain so he can easily load them to

  • Modify PR in external opreation

    Hello During external operation creation we need to modify EBAN table to add an indicator. I tried EXIT´S COZF0001 COZF0002 But they don´t export the field that I need. Is there any BADI or enhancement that could help us modify EBAN before PR creatio

  • Difference between form 16 and 24

    Can anyone let me know in the simplest way, the difference bet form 16, 24 and 24Q? Edited by: tinku ray on Feb 2, 2009 9:28 AM

  • How to set

    I am running a prgram from command line which requires to pass command line argument with -D option to set several directories in the JVM for java extension mechanism. I could successfully run my program as below by using a variable. set EXT_DIRS = "

  • Flash database tutorial

    I'm currently using Flash CS3 with actionscript 2.0. I've been looking around on the internet for a tutorial that defines how to implement a database into a Flash application. I've nto had much luck, alot of the tutorials out there use out-dated vers