Field value in transaction?

Hi,
Recently I found out that I have a problem in determining the correct internal table use in standard SAP program.
For example, when I debug the standard program for Sales when I creating SO using VA01, how I know which internal table contained the latest value? As inside the standard SAP table, there are a lot of internal table xvbak, vbak, vbep, xvbep...ect. Let say I want to check the latest value for sales order header, should I refer to xvbak or vbak inside the standard SAP program? I did have a confuse on that.
Furthermore, is there any faster way to determine the field value for a certain transaction, for example VA03 and I would like to check on the delivery block field.
Thanks.

Hi,
use XVBAK table,becoz it will contain the recent or new values.IN sap Xtable generally contains the recent values.U will get the delivery block field LIFSK.
Regards,
nagaraj

Similar Messages

  • Set the default field value to transaction code field, when calling from WD

    Hi all,
    Can we pass the value in a input field of a standard transaction calling from WD application. Suppose we are calling a transaction VA03 in an external window, then how will be pass the value in the VBAK_VBELN screen field.
    Is there any way to pass the value to this transaction field. I have also tried out to set the parameter ID 'AUN' for VA03 transaction VBELN field. But it did not work for me.
    Is there any way to set the default field value to transaction code field, when calling from WD?
    Please suggest, if anyone have any idea.
    Thanks
    Sanket

    Hi,
    I am using the below code to open a standard transaction. It will help you to explain my point more easily.
    DATA: url TYPE string,
              host TYPE string,
              port TYPE string.
    *Call below method to get host and port
      cl_http_server=>if_http_server~get_location(
         IMPORTING host = host
                port = port ).
    *create URL
      CONCATENATE 'http'
      '://' host ':' port
      '/sap/bc/gui/sap/its/webgui/?sap-client=&~transaction=' 'VA03'
       INTO url.
    *get the window manager as we are opening t code in external window.
      DATA lo_window_manager TYPE REF TO if_wd_window_manager.
      DATA lo_api_component TYPE REF TO if_wd_component.
      DATA lo_window TYPE REF TO if_wd_window.
      lo_api_component = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
    call the url which we created above
      lo_window_manager->create_external_window(
      EXPORTING
      url = url
      RECEIVING
      window = lo_window ).
      lo_window->open( ).
    Note*
    One more query I want to add to this thread, that is there any possibility to call a custom transaction as well?

  • Field value in transaction  is diferent in database table.

    Hi, i have a field type "curr" in a transaction. The field has a value in the transaction but  this value is diferent in
    the table that fill this transaction. For example, so field value is 6000 in the transaction, in the table is 60,00.
    I need get this value with the format in the transaction.
    Can you help me, please?

    Hi
    It means you're using a currency without decimals, in this case the system stores the amount devided for 100 in order to use the field completely and safe the space.
    Every field for a amount needs a currency field for the control: so the system can know how to store and display it
    When u write an amount you should always use the option CURRENCY in order to convert it to output format automatically.
    WRITE <AMOUNT> CURRENCY <CURRENCY>.
    Max
    Edited by: max bianchi on Mar 18, 2008 5:10 PM

  • Remove existing field value from transaction CV01N

    Hi Ramchander,
    i already used that method but i.e. not working .
    when CV01N transaction has done docuement number is automatically created thats why it should
    be blank so, my problem is that document is blank for 1st record & when 2nd record is created using bdc then document number field by default taken value of 1st record .
    so plz reply me how to remove this value.
    Regards,
    Jyotsna

    HI jyothsna,
    PERFORM bdc_field       USING 'ABBT-GSMNG(01)'   "---> This is the Screen Field name
                                                      qn_co48.                   "---> This is the Value we are passing.
    * Just clear this value and leave it blank.
    **How did you get it??? 
    Cheerz
    Ram
    Edited by: Ramchander Krishnamraju on Nov 9, 2009 5:27 AM

  • How to pick a field value from transaction during runtime

    Hi,
    I have an exit which allows creation of po without purch. req. for selected Purchasing Document Types.
    similarly the exit should also allow the creation po's with item categories 'L and  U' even without pr's.
    now my problem is how to pick the value of this  item category during runtime so as to put the check.
    your suggestions are valued.
    Thanks in advance

    Hi,
    if you have the new debugger, you can see the global variables that you can use in your exit (putting a break point on your code), so you can found easly the structure or field that contains your informations.
    I hope that's useful for u,
    Regards

  • Reference field value disappears on the Receivables transaction line window

    Hi Everybody,
    I have below problem while creating the manual invoice from Receivables.
    when i am trying to utilize the reference field on the Receivables transaction line,
    so that it can be used to enter extra data for manual invoices.
    At the moment if you enter data in the file and save it . it was visible.
    Again when i re query the transaction then it disappears.
    Kindly some one suggest me how to view reference field value from Transaction line and as well as from back end in which column of Trx table i can see the data. Please help me to resolve the issue.
    Many Thanks.

    Pl check the below note.
    272428.1
    There is an enhancement pending (2660680) for this issue. You may have to check the status of this enhancement with Oracle Crop.

  • Escaping field value in custom transaction

    I have created a custom transaction inserting fields in a table called `billing`. The values are taken mainly from two other tables called `account` and `paypalinfo`. I have attached the code below.
    Please not the values to be inserted notated in wavy brackets like{paypalinfo.txnid}. This means the variable content is replacing what is in between the brackets and the brackets themselves of course at run time. Sine these are often character strings, I have put them into single quotes.
    This worked great until I had an Irish guy acccessing my site with the sirname of O'Hara. That of course confused the statement, as suddenly there was a ' character, which was supposed to be interpreted as string, but was interpreted as SQL field delimiter and thus broke the code.
    Here is my question: Should I escape the value and how would I do it, since this is not a normal code but a placeholder replaced at runtime? Or should I use another SQL field value delimiter, thus replace ' with ` ? I think the latter solution is inferior - just think of what heappens if you get an O`Hara instead of an O'Hara.
    So in essence the question is: How do you handle escaping varabiable content in custom transactions with run time replaced variables in {...} brackets?
    Any feedback welcome.
    Here is the code:
    // Make a custom transaction instance
    $customTransaction2 = new tNG_custom($conn_chilli);
    $tNGs->addTransaction($customTransaction2);
    // Register triggers
    $customTransaction2->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_Insert1");
    // Set custom transaction SQL
    $customTransaction2->setSQL("INSERT INTO billing (buyer_email, account, affiliate, partner, admin, transid, transdate, buyer_fname, buyer_lname, package, minutesbought, amountpaid, currency, userid, mac, nasid, routermac) values ('{paypalinfo.buyer_email}','{paypalinfo.account}','{account.affiliate}', '{account.partner}', '{account.admin}', '{paypalinfo.txnid}', '".$right_now."', '{paypalinfo.firstname}', '{paypalinfo.lastname}', '{paypalinfo.itemname}', '{package.tavail}', '{paypalinfo.mc_gross}', '{paypalinfo.mc_currency}', '{SESSION.id}', '{paypalinfo.usermac}', '".$router_name."', '{paypalinfo.routermac}')");

    You should never be using anything but:<br /><br />'b string mysql_real_escape_string  ( string $unescaped_string  [, resource $link_identifier  ] )<br /><br />'i http://www.php.net/manual/en/function.mysql-real-escape-string.php<br /><br />The reasons for this is that this are related to SQL injection attacks.  I would hand code this, but for anything more complex than CRUD ( http://en.wikipedia.org/wiki/Create,_read,_update_and_delete ) (which ADDT handles very nicely) I favor hand coding as it is faster, less complex when enforcing business process.  Also, this allows one usage of the database management system's transaction mechanisms which are typically far more robust and reliable on top of being simpler to work with.  <br /><br />Please note that the type of my storage for your database within MySQL will support different features.  To enable the usage of database transactions you will need to use the InnoDB table type rather then the default MyISAM table type.  Various versions of MySQL have other options for transaction safe table but those two are the ones that are consistently available in web environs where bleeding edge software is not normally deployed.<br /><br />http://dev.mysql.com/doc/refman/5.0/en/storage-engines.html<br /><br />Diatribe aside, what you need to do with these templated objects is to duplicate the object referenced {paypalinfo} and apply mysql_real_escape_string to the duplicates elements {paypalinfo_escaped_copy.txnid}.  Then run the copied ADDT code with values from {paypalinfo_escaped_copy}.  How you do you this I leave you to track down as I do not find that level of abstraction to be a good use of my time and other other libraries/frameworks do it much more elegantly using less of my time.<br /><br />But as Gunter already noted, refactoring your problem to work with your tools existing architectures can be simpler.  ADDT has a limited programming architecture (primary design) which is done to simplify the automatic generation of code.  This can make some simple things complex (50-80 mouse clicks) as opposed to  typing one or two lines of code.<br /><br />some thoughts, <smile><br /><br />Sean

  • Where can i find Main work center field value in il03 transaction ??

    Hi experts,
    Where can i find <b>Main work center</b> field value in il03 transaction.
    Iam looking for the table from where that value will be filled.
    thanks
    Suresh

    Hi anji reddy,
    No that filed is not avaiable in that . can please tell some other soulution ...
    ASAP...
    thanks,
    Suresh

  • Field Value in ME51N Transaction

    Hi Gurus.
    I need assign from EBAN table one value, to field value in Item 'Valuation'  (tabstrip vauation) in the data
    of the position.
    Is this possible ??
    Thank You for yours helps.

    HI
    Use user eixt EXIT_SAPLMEREQ_007 or EXIT_SAPLMEREQ_009 to get the value of valuation from eban and then use user exit EXIT_SAPLMEREQ_005 to populate new value in table IM_DATA_NEW.
    Regards
    Sachin

  • How to Track the changes made to the custom table field value

    I want to track the changes made to the custom table field value in table maintenance generator.please help me it is very urgent
    Thanks & Regards,
    Kranti

    Hi Satya,
    These are the steps you've to do.
    1. Enable the change document flag in the data element level for the fields of the tables you want to monitor.
    2. Go to transaction SCDO. Create a new change object, and add your table to this object. After generation, you'll get a function module.
    3. Call this function module in the table maintainence generator screen, after the data is saved to the database table. This function module automaticallly writes the changes, with the old and new values, and the fields that were changed to the tables CDHDR and CDPOS.
    4. You can keep track of the changes made to the table by monitoring these tables.
    Regards
    Anil Madhavan

  • Custom Field value is not getting populated in Display mode

    Hi Experts ,
    I have created a custom field on sales tab for BP Role Bill to prty in BP transaction in SAP CRM. The problem i am facing is that , after i chose my sales area field value is not populating in first time no matter whether i am in display or change mode but the moment i switch to the other mode the value is being populated. Kindly help me in solving this.
    Regards,
    Ameet

    Dear Chetan,
    If the field is added through AET, can you please check the Get & Set Methods?
    If the field value has fixed values which you have defined while creating, then check GET_V & GET_P methods.
    Thanks & Kind Regards,
    Ravi Kumar A R

  • Access field value in ALV

    Hello experts,
    I have created an simple ALV Grid report, in that I have implemented double click event n I want to create a new ALV grid with new data to be displayed. So I want to access field value ie using SLIS_SELFIELD or anything. Could anyone please guide me how can I access a field value using slis though SLIS_SELFIELD has methods like SEL_TAB_FIELD... I wan to access something like SEL_FIELD_VALUE but its not available in the class.
    Thanks in advance...
    Regards,
    Viral Patel

    Hi Viral,
    SLIS_SELFIELD has an attribute named VALUE which holds the value you selected row & TBAINDEX holds the row number.
    Refer below code snippet :-
    FORM user_command
              USING s_ucomm LIKE sy-ucomm
              s_selfield TYPE slis_selfield.                    "#EC CALLED
      CASE s_ucomm.
        WHEN '&IC1'.
          CLEAR wa_podat2.
          READ TABLE itab_podat2 INTO wa_podat2 INDEX s_selfield-tabindex.
          CHECK sy-subrc = 0.
          IF wa_podat2-ebeln = s_selfield-value.
            SET PARAMETER ID 'BES' FIELD wa_podat2-ebeln.
            IF wa_podat2-ebeln IS NOT INITIAL.
              CALL TRANSACTION c_tcode.
            ENDIF.
    For above event to happen, you have to use parameter I_CALLBACK_USER_COMMAND of  REUSE_ALV_GRID_DISPLAY as below :-
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program      = l_repid
          i_callback_user_command = 'USER_COMMAND'
          it_fieldcat             = itab_fieldcat
          it_events               = itab_events
        TABLES
          t_outtab                = itab_podat2[].
    Regards
    Abhii
    Edited by: Abhii on Nov 30, 2009 11:25 AM

  • How to add a new field in migo transaction (header level)

    hi guru's
    can you please tell me how to add a field in migo transaction?
    i want to add a field in header data and that too under "general" tab. i dont have data regarding that field.
    and when we enter a value for that field in migo, it has to take .
    thank you.

    Hi, My problem is allmost like the one you are discussing here....
    I have appended MKPF for my Z-fields and created a sub-screen (Design the screen). I am calling this screen in PBO_HEADER. Now i can see my newly created tab along with fields.
    Now the problem is:-
    1. How I can transfer that data entered in screen fields back to my BADI.
    2. How to update my z-fields in MKPF table along with standard fields. I have tried using FM - 'J_1IEXGM_BADI_POST_DOCUMENT' in Method - POST_DOCUMENT, but its not updating table record in MKPF for Z-Fields.
    Please advice.....
    Thanks

  • Bind input field value to a variable fails

    Business need : The user wants to re-evaluate lines by a percentage value which he fills via his BI-IP screen.
    I created an INPUT FIELD in WAD and I am trying to link a variable value (initially created in BI-IP through transaction RSPLAN)
    to this INPUT FIELD.
    Whenever I fill the input field with a value, the value is not being transferred to the variable.
    Please help how to bind an INPUT field value to a variable to be transmitted to a planning function.
    I have made many trials but in vain.
    Please help.

    Hi.
    I will present my scenario (it works in my system). From this scenario you may "cut" implementation for your scenario.
    Lets sat I have an input fileld item and I want to read value (in my case numeric value) and pass this value to any planning sequence.
    1. Create in Bex variable (in my case it is formula variable) lets say Z_INPUT_VAR
    2. In WAD, when you executin planning sequence (lets say by pressing button execute) in command EXEC_PLANNING_SEQUENCE_SIMPLE define data binding.
    When you clicked data binding->variable input MANUALY your variable name (Z_INPUT_VAR) in popup window.
    3. In variable type select (ITEM_INPUT) type
    4. In web item select your input field item.
    This way you will pass inputed value to vaariable and planning sequence.
    Then in planning function you also may use VARV() to read value of Z_INPUT_VAR variable.
    Regards.

  • New Field value not displayed in "My own activities" of CRM 5.0 Own tab

    Hi.
    I have a scenario where in we have added a new field to "My open activities" in CRM 5.0 Own tab.
    However the value of the field for various transactions is getting displayed only for one particular user and not for all the users.
    what may be the reason for this?!!!!!!
    The only user who is getting the output properly, the user ID of his was replication based on similar roles to check whether it was issue related with roles. But the output was not obtained even with the replicated user ID.
    Hence the output continues to come only for one particular user in all the systems.
    Kindly request to provide some inputs / suggestions at the earliest.
    Thanks and regards.

    Is aanyone able to help with this?
    Thanks

Maybe you are looking for

  • Error in Invoice process

    Hello Experts, I need your help. I had an requirement from the client to capture the COGS details are in transit. Created new condition type ZVRS, copy of VPRS. Assigned the Account key and G/L accounts in VKOA. Created the order and ZVRS value calcu

  • Regarding events in alv reports

    Dear Friends,         Sorry for this post, Events not triggering in alv reports. There is no errors and no warnings.I am using interactive reports. Please tell me where could be i went wrong. It is displaying basic list information but with out event

  • Yahoo finance compatibility issue.

    The add button star - * wont work. Works for IE.

  • About to buy a new Mac Pro

    A few months ago I posted a very simlar question, but can't find it anymore. I'm ready to purchase a new Mac Pro, now I have a 2008 8 Core 2.8GHz with 10 gig ram and was looking at the latest 8 core with a lesser speed of 2.4. GHz and cannot find a b

  • Are third party disk utilities really necessary?

    Are third party disk utilities [such as TechTool Pro or Disk Warrior] really necessary on a G5? Does the Apple Disk Utility perform all necessary repair functions?