Change value of field name while debugging

Hello,
i need to debug the user exit . i made the break points .
the problem that i got is , while executing the t-code kgi2 , i get like 100 records in a table and i have to check for the particular value at number 50 and 70 .
But when i debug , the debugging starts from number 1 and it takes lot of time to reach to number 50 .
I wanted to chnage the value of the field while debugging . i tried to click on the pencil on the right and chnage the value but i get the message "no authorization for replace".
Anybody knows how i can reach to number 50 directly without going to all 49 values .
please help sap gurus .........
Sumit
Edited by: sumit123 on Apr 15, 2010 11:48 AM

Hi summit,
In the dubugging
click on watch point button.. you will gte a poupup
asking for fieldname  ie : which field value u want to check
say in your internal table matnr is one of the field and if you have 1000 records and if you want to check for a particular value
then  given as below
in the field name =  wa_itab-matnr
           option     =  =  ( euqal )
           value  = 200 ( your rquired value )
click on ok button
wtach point will be create now press f8 it will stoed at that particular loop pass ie : when your condition is met.
Let me know if you need any further info
Regards
Satish Boguda

Similar Messages

  • How to change the Value of a Varible while debugging in ECC 6.0

    Hi all,
    How can i change   and Save the Value of a varible while debugging a FM in ECC 6.0.
    I can able to change the Value of a variable by clicking the Pencil Icon (Change icon) which is there next to that value
    But i am not able to save that value
    Please give the suggestions
    Thanks in Advance
    Regards
    Ajay

    Ajay,
    I think you are changing more than one variable value at a time...this things generally happen in this case.
    Go step by step.....
    Press on the pencil button
    value filed becomes editable
    change the value
    and at once press the enter
    the ediatble field automatically becomes non editable, and hence retain the changed value.
    Pooja

  • How to change value date field

    HI,
    After posting the transaction data into the document , is it possible to change the 'value date' . if it is possible pl.give me guidelines . As i know it is possible to change "Assignmentand Text filed"
    This is my user Requirement to change " Value date field".
    Regards,
    Prabhakar

    Hi,
    Check in document change FB02.
      It may allow you to change the value date. If it is not allow to change the filed then create value date in
      Document Change Rules, Document Header.
    Regards,
    Sankar

  • Combing PDF forms with identical field names while retaining unique values.

    I have several PDF files of the same form that has been filled out by multiple users. I need to create a combined file of all the responses for reporting purposes. However, the forms (obviously) all have the same field names, and when I combine them the values of the first form autofill the values of the matched fields on the other forms. I need a way to combine the forms while retaining the unique field values. I thought I could write a js to rename the fields, but that isn't possible.
    *EDIT: The fields need to retain editability because some contain long, scrolling text. Flattening or read-only isn't an option, not that either fixes the above problem.
    Suggestions?

    UPDATE:
    I solved this problem, at least for my own needs. Following try67's advice in a related post, I had to delete the existing fields and create new ones with new names. Given my desired outcome, this meant collecting all of the field properties of the fields (with some variation by field type), storing it, erasing the existing fields, and using that stored information to create new, identical fields (again with some variation by field type). Since I didn't want to retain actions or javascript, this was a perfect solution. I also no longer needed the buttons to function (since I wasn't retaining their javascript), so I made them read-only. I'm listing my working code below, in case anyone else could benefit from some or all of it.
    My question to the community is this: Why doesn't Adobe allow for fields to be renamed via javascript? Is it a security issue? My life would have been a lot easier the last few days if I could simply rename existing fields.
    The following script is used in a Combine Files action via the Action Wizard. The PDF optimizer is also used to strip out or flatten additional items.
    //This script is used to rename all the fields in a document while also removing any javascript or actions associated with those fields. Makes buttons read only without renaming.
    //Function to create a random alphanumeric ID.
    function makeid(n) {
        var text = "";
        var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
        for( var i=1; i <=n; i++ )
            text += possible.charAt(Math.floor(Math.random() * possible.length));
        return text;
    //List variables for collecting arrays of field properties.
    var fieldNum = this.numFields;
    var fieldNameArray = new Array();
    var fieldTypeArray = new Array();
    var pageNumArray = new Array();
    var fieldRectArray = new Array();
    var fieldValueArray = new Array();
    var borderStyleArray = new Array();
    var borderColorArray = new Array();
    var borderThicknessArray = new Array();
    var fillColorArray = new Array();
    var textColorArray = new Array();
    var textFontArray = new Array();
    var textSizeArray = new Array();
    var textAlignmentArray = new Array();
    var textMultilineArray = new Array();
    var checkmarkStyleArray = new Array();
    var radiowidgetNumArray = new Array();
    var radiowidgetRectArray = new Array();
    var radiowidgetPageNumArray = new Array();
    //Get the properties of all the current fields, including widgets.
    for (var i = 0; i < fieldNum; i++) {
        var currentField = this.getNthFieldName(i);
        fieldNameArray[i] = makeid(5);
        fieldTypeArray[i] = this.getField(currentField).type;
        borderStyleArray[i] = this.getField(currentField).borderStyle;
        borderColorArray[i] = this.getField(currentField).strokeColor;
        borderThicknessArray[i] = this.getField(currentField).lineWidth;
        fillColorArray[i] = this.getField(currentField).fillColor;
        textColorArray[i] = this.getField(currentField).textColor;
        textFontArray[i] = this.getField(currentField).textFont;
        textSizeArray[i] = this.getField(currentField).textSize  
        if (this.getField(currentField).type == "text") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            textAlignmentArray[i] = this.getField(currentField).alignment;
            textMultilineArray[i] = this.getField(currentField).multiline;
        if (this.getField(currentField).type == "checkbox") {
            fieldRectArray[i] = this.getField(currentField).rect;
            pageNumArray[i] = this.getField(currentField).page;
            fieldValueArray[i] = this.getField(currentField).value;
            checkmarkStyleArray[i] = this.getField(currentField).style;
        if (this.getField(currentField).type == "radiobutton") {
            checkmarkStyleArray[i] = this.getField(currentField).style;
            fieldValueArray[i] = this.getField(currentField).value;
            var n = 0;
            while (this.getField(currentField + "." + n) != null) {
                radiowidgetNumArray[n] = this.getField(currentField + "." + n).name;
                n++;
            for (x = 0; x < radiowidgetNumArray.length; x++) {
                radiowidgetRectArray[x] = this.getField(radiowidgetNumArray[x]).rect;
                radiowidgetPageNumArray[x] = this.getField(radiowidgetNumArray[x]).page;
    //Delete all the current fields, except for buttons, which become read-only.
    for (var i = (fieldNum - 1); i > -1; i--) {
        var currentField = this.getNthFieldName(i);
        if (this.getField(currentField).type != "button") {
            this.removeField(currentField);
        } else {
            this.getField(currentField).readonly = true;
    //Using the stored arrays of field properties, generate new, identical fields.
    for (var i = 0; i < fieldNum; i++) {
        if (fieldTypeArray[i] == "text") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]);
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.alignment = textAlignmentArray[i];
            newField.multiline = textMultilineArray[i];
            newField.doNotSpellCheck = true;
        if (fieldTypeArray[i] == "checkbox") {
            var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], pageNumArray[i], fieldRectArray[i]); 
            newField.value = fieldValueArray[i];
            newField.borderStyle = borderStyleArray[i];
            newField.strokeColor = borderColorArray[i];
            newField.lineWidth = borderThicknessArray[i];
            newField.fillColor = fillColorArray[i];
            newField.textColor = textColorArray[i];
            newField.textFont = textFontArray[i];
            newField.textSize = textSizeArray[i];
            newField.style = checkmarkStyleArray[i];
            newField.readonly = true;
        if (fieldTypeArray[i] == "radiobutton") {
            for (y = 0; y < radiowidgetNumArray.length; y++) {
                var newField = this.addField(fieldNameArray[i], fieldTypeArray[i], radiowidgetPageNumArray[y], radiowidgetRectArray[y]);
                newField.value = fieldValueArray[i];
                newField.borderStyle = borderStyleArray[i];
                newField.strokeColor = borderColorArray[i];
                newField.lineWidth = borderThicknessArray[i];
                newField.fillColor = fillColorArray[i];
                newField.textColor = textColorArray[i];
                newField.textFont = textFontArray[i];
                newField.textSize = textSizeArray[i];
                newField.style = checkmarkStyleArray[i];
                newField.readonly = true;           
    //End script.

  • Changing a text field name in an existing PDF via VBA

    Using OLE, I am accessing a given form with the following code:
    Function GetTextFieldNames(strFormName As String, strFieldName)
    Dim myApp As AcroApp
    Dim acForm As Acrobat.AcroPDDoc
    Dim jso As Object
    Dim strTest As String
    Dim Field As Object
    'Set the object references
    Set myApp = CreateObject("AcroExch.App")
    Set acForm = CreateObject("AcroExch.PDDoc")
    acForm.Open (strFormName)
    Set jso = acForm.GetJSObject
    Set Field = jso.getField(strFieldName)
    'Clean up
    acForm.Close
    myApp.Exit
    Set myApp = Nothing
    Set acForm = Nothing
    End Function
    The two items that I would like to achieve are:
    1. Getting a list of fieldnames on the form referenced
    2. Changing the field name (in this case, a textbox or checkbox) programmatically.
    However, I have not had any success in retrieving a list of available field names, nor have I been able to modify the name of the field. Any ideas?
    i.e. It would be nice one could say
    For i = 0 to acForm.[FieldCount]
         Set Field = jso.GetField(i)
         Print Field.Name
    Next i
    ...and
    Field.Name = "NewFieldName"
    I hope that helps to explain what I am trying to accomplish. Any ideas are appreciated. Thank you!

    Have you consulted the documentation in the SDK about what methods are available? It will show you how to get the list of fields and/or the proper count for iteration.
    IIRC you can't change the name via VBA

  • Using Javascript to change multiple text field names

    I have a pdf with multiple text fields. I need to change all the text field names (General -> Name) so that they are unique so that when I combine multiple pdfs together, the text fields will stay intact. Is there anyway to do this using javascript? Thanks!

    I'm new to javascript too...it will be very helpfull for me too...Thanks
    poltrone
    prodotti chimici

  • ME21N-ME51N - change value of field at item level

    Hello All,
    We create a purchase requisition from a sales order and after a purchase order in reference to the purchase requisition.
    We would like to have the sales order number in the EBAN-BSTNR and/or in EKPO-BEDNR.
    We found some user-exits but it seems that we can't change value of standard fields with these.
    Could someone help us to find a solution ?
    May be with a BADI ?
    Thanks
    Véronique

    The code below should work for you, as for explanation why it will work look at SAP note 178328 over some coffee! )
    I gave some explanation below the code but the SAP note explains it in more detail
    DATA: ls_yvbap LIKE yvbap.
    * Sales doc is in creation mode
    IF t180-trtyp = charh.
      LOOP AT xvbap.
        xvbap-spart = cobl-spart.
        MODIFY xvbap.
      ENDLOOP.
    ENDIF.
    * Sales doc is in change mode
    IF t180-trtyp = charv.
      LOOP AT xvbap.
    *   Append Y-table and set update flag if necessary
        IF xvbap-updkz EQ space.
    *     Save unchanged version of XVBAP to YVBAP
          ls_yvbap = xvbap.
          APPEND ls_yvbap TO yvbap.
          <xvbap-updkz = charu.
          upd_vbap = charu.
        ENDIF.
        xvbap-spart = cobl-spart.
        MODIFY xvbap.
      ENDLOOP.
    ENDIF.
    SAP uses two internal tables XVBAP and YVBAP in sales document processing. XVBAP which contains the order items as they are currently after the user changed them on the screen, whereas YVBAP stores only changed item records the way they were before change. So YVBAP is only populated in change mode and not in creation mode. So if we are updating XVBAP when sales document is in change mode, we should ensure that YVBAP also contains the same record the way it was before our change.
    SAP will only update the records to database if we ensure the integrity of XVBAP and YVBAP internal tables.

  • User Exit: AFAR0002. How to change value in field: ANLC - NAFAP?

    Hi,
    At the moment I am working on custom Depreciation Key for which the depreciation for period (and subperiods) will be recounted and taken into account for depreciation posting.
    I try to use exit AFAR0002 for this purpose.
    I am able to count and change the value of depreciation for each subperiods. The problem is, that I cannot change the value of "Ordinary depreciation that is planned for the asset in the current fiscal year" for the pierod '000'. Due to this, in the last period of the current fiscal year system tries to reverse the sum of planned depreciation in previous subperiods. It simply tries to meet the "planned depreciation for fiscal year' with the sum of planned depreciation for subperiods.
    example:
    ANLC-NAFAP = 100.
    Active Asset value = 1000
    Depreciation for periods:
    001     ->     -50
    002     ->     -50
    003     ->     -50
    004     ->     -50
    005     ->     -50
    006     ->     -50
    007     ->     -50
    008     ->     -50
    009     ->     -50
    010     ->     -50
    011     ->     -50
    *012     ->     450
    planned value -> -100
    The questions are:
    1. is it possible to change value in ANLC-NAFAP in this exit
    2. How it sould be done.
    Thanks in advance for help.
    Regards,
    Wojciech

    Dear Paul,
    I had run AFAR. The report changed to '0' the value of ANLC-NAFAP  field - sth changed - thanks.
    But I still have a problem to set this value to the sum of planned depreciation for each month. At the moment, in the last period the system tries to reverse all planned "sub"depreciation to '0' in total.
    Is it any additional condition that has to be fulfilled in order to change the value of "Ordinary depreciation that is planned for the asset in the current fiscal year" for the pierod '000'?
    Regards,
    Wojciech

  • Getting incorrect values for linkQueryResult (ILinkManager) while debugging our plugin in Adobe InDesign CC debug

    Hi,
    We have added some functionalities in PanelTreeView sample source. In that, we are getting incorrect values for linkQueryResult (ILinkManager) while using InDesign CC debug. But in release version we are getting the correct values for linkQueryResult (ILinkManager). So when debugging our plugin InDesign CC debugger has stopped working. Please find the below source,
    IDocument* document = Utils<ILayoutUIUtils>()->GetFrontDocument();
      if(document == nil)
      //CAlert::InformationAlert("Doc Interface Not Created");
      break;
      IDataBase *db = ::GetDataBase(document);
      InterfacePtr<ILinkManager> linkmanager(document, UseDefaultIID());
      if(linkmanager == nil)
      //CAlert::InformationAlert("linkmanager Interface Not Created");
      break;
      LinkQuery Query;
      ILinkManager::QueryResult linkQueryResult;
      linkmanager -> QueryLinks(Query, linkQueryResult);
      for (ILinkManager::QueryResult::const_iterator iter(linkQueryResult.begin()), end(linkQueryResult.end()); iter != end; ++iter)
      InterfacePtr<ILink> iLink(db, *iter, UseDefaultIID());
      if ( iLink )
      InterfacePtr<ILinkResource> resource(linkmanager->QueryResourceByUID(iLink -> GetResource()));
      ILinkResource::ResourceState rs = resource->GetState();
      PMString fileName = resource -> GetLongName(kTrue); //gets full path
      CharCounter lc=fileName.LastIndexOfCharacter('.');
      PMString *exten = fileName.Substring(lc+1,3);
      if((*exten).Compare(kFalse,"xml")==0)
      xmlDataLinkName = fileName;
    Kindly help us if anyone has idea regarding this issue.
    Thanks,
    VIMALA L

    Hi Vimala L,
    try to replace
    ILinkManager::QueryResult linkQueryResult;
    by
    UIDList linkQueryResult(db);
    Markus

  • Web Service XML Changes Return Table  Field Names

    I am writing a Web service to return a employee information from SAP using .Net Connector. My Webservice XML changes return table column names with few escape characters. Does anyone know why this happens? and How to prevent it?
    Every column name is changed: e.g. PERS_NO to PERS_--5fNO
    NCo -> 2.0
    RFC- > Custom Function module
    RFC Return Type -> ZFPSYNC
    VS.Net -> VS Studio 2003, ( C# Web service)
    Here is part of XML document:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ArrayOfZFPSYNC xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
    - <ZFPSYNC>
      <PERS_5fNO>00100001</PERS_5fNO>
      <PDS_5fEMPID>00054740</PDS_5fEMPID>
      <SSN>001380261</SSN>
      <NAME_--5fPFX />
      <FIRST_5fNAME>Tuesday</FIRST_5fNAME>
      <LAST_5fNAME>October</LAST_5fNAME>
      <NAME_--5fSFX />
      <PRIOR_5fNAME>Tuesday October</PRIOR_5fNAME>
      <NICKNAME />
      <CO_5fCODE>TAX</CO_5fCODE>
      <CO_5fCODE_5fT>Tax LLP</CO_5fCODE_5fT>
      <CO_5fCTRY>US</CO_5fCTRY>
      <ORG_5fUNIT>50191687</ORG_5fUNIT>
      <ORG_5fUNIT_5fT>Northeast Region Lead Tax</ORG_5fUNIT_5fT>
      <EE_5fLEVEL>C1</EE_5fLEVEL>
      <EE_5fLEVEL_5fT>Firm Director</EE_5fLEVEL_5fT>
      <SRV_5fAREA>TAX</SRV_5fAREA>
      <SRV_5fAREA_5fT>Tax</SRV_5fAREA_5fT>
      <JOB_5fFAM>CS-TAX</JOB_5fFAM>
      <JOB_5fFAM_5fT>CS - Tax</JOB_5fFAM_5fT>
      <PER_5fAREA>BOSX</PER_5fAREA>
      <PER_5fAREA_5fT>Boston-Berkeley St-TAX</PER_5fAREA_5fT>
      <PER_5fADDR>200 Berkeley Street</PER_5fADDR>

    Please install patch from OSS note 506603. This should correct the problem.

  • Changing ALV list field name

    Hi
    In webdynpro application the  ALV list display the field name which is in table description i want to put my preferable field name. Do u all  have any idea how is it possible

    Hello,
    U could bult the fildcatalog like this:
    * Sales Order Number
      CLEAR L_FIELDCAT.
      L_FIELDCAT-TABNAME   = 'G_T_OUTTAB'.
      L_FIELDCAT-FIELDNAME = 'VBELN'.
      L_FIELDCAT-SELTEXT_M = TEXT-002.  " Ur own text
      L_FIELDCAT-COL_POS   = 1.
      L_FIELDCAT-KEY = 'X'.
      APPEND L_FIELDCAT TO IT_FIELDCAT.
      CLEAR  L_FIELDCAT.
    If useful reward.
    Vasanth

  • Changing address book field name with automator

    can anyone advise how to change a field in multiple contacts using automator, ie i need to change either the 'work mobile', or 'home mobile' field to the simple 'mobile' so as to fix the phone book error i now have on my sony p900 since the recent 10.4.6 update rebuilt the phone version of my addressbook,
    the mobile now will not recognise the changed fields as mobile phones but as land lines, making the sending of sms etc difficult.
    As i have over 400 contacts this is a pain indeed....
    any genius scripters out there who can both help and explain?
    thanks
    simon

    Hi,
    According to your description, the name of a address list container is changed through Exchange management tool. However, Outlook clients still show the old name.
    In this case, I recommend you recreate a new profile to check the result. I test it and the address list updates in Outlook client only after I recreate the profile.
    If you have any question, please feel free to let me know.
    Thanks,
    Angela Shi
    TechNet Community Support

  • Setting Date value in File Name while scheduling report to File System

    I am trying to set the file name as %SI_Name% Current Date.extension in Destination section while scheduling a crystal report to File system.
    So in Use Specific Name section i have added %SI_NAME% %SI_STARTTIME%.%EXT%.
    Schedule works fine for me and I get the document in the file location with name  'Title 2009-06-26-12-53-17.pdf".
    But I dont want time to be printed in the title, so the title should be "Title 2009-06-26.pdf". How i can achieve this.
    -Raghu

    Is there any way to achieve this?
    -Raghu
    Edited by: Raghavendra Barekere on Jul 5, 2009 3:09 PM

  • Changing the default file name while saving the PDF interactive form

    Hi All,
    I am generating an Interactive PDF form using webdynpro, but when I try to save the PDF to my local machine the default file name comes as "<b>unknown.pdf</b>" so I have to manually go and enter the name before saving it.
    Is there any way to change this default name so that I don't have to manually edit the file name each time when I want to save the generated PDF interactive form?
    Please reply soon.
    Thanks in advance!

    I am running into the same issue. Setting the desname parameter (e.g. desname=temp.pdf) doesn't have any effect. Has anyone found a solution to this?
    Thanks,
    Brian

  • Changing Clip and File Names While Maintaining Link to P2

    I know that if I open P2 files in the Log and Transfer window I can (re)name clips before transferring them to QuickTimes and still maintain a link to the original P2 files in case something goes offline. Two questions:
    1. If I transfer without changing the name, then change the name of the clip and its related QT from within a bin will it still maintain its link to the original P2 files?
    2. If so, will it maintain a link to copies of the same P2 files on another drive (I'm transferring and organizing at home using a backup of the P2's)? Would links be maintained if I did the name change in the Log and Transfer window?
    OK, that was three questions. No one expects the Spanish Inquisition.
    Martin

    Well...the best way to figure this out is to test. I didn't know, so I did a test. Imported a clip called 0003JK.mov. Changed it at MY CAR (because it was a shot of my car)...used FCP to change the name of the file on my drive to match the clip. Then I deleted it. Then I used the BATCH CAPTURE function...and YES, it imported that clip fine.
    SO...for #2...test it and see. But, if you mean that you are importing clips on one machine, NOT changing the names...and then on your machine importing and changing the names....will it relink to the files imported on the OTHER machine? I doubt it...but I can't be sure. So test it. The only way to know is to test it.
    But if you change the name in the Log and Transfer window, or later, yes, they relink.
    Shane

Maybe you are looking for

  • Category mainatanance in R/3 for SRM

    Hi Gurus I am getting the message  below , where in R/3 can I maintain the settypes for product categories( material groups) ? *You can only change the category data in the original system RFD100* *Message no. COM_PRCAT010* *Diagnosis* *This category

  • Can't burn multiple projects to DVD

    I imported photos into iPhoto, then separated the photos into three different albums, each with a different name. I then worked on each individual album of photos in iDVD, creating slideshows, giving each slideshow a different Theme and audio (songs)

  • Custom window in analytic function

    SELECT  device_id,         case_id,         value,         fo_value,         nomination,         symbol,         cur_id,         time,         data_type,         COALESCE (            VALUE,            LAST_VALUE (               VALUE IGNORE NULLS   

  • Tcode SD related for displaying a report with completed deliveries

    Dear SAP Experts, I would like to ask you a question. Is there any Tcode for displaying a report with all the completed outbound deliveries (8000++) or posted goods issues (4900++) with the relevant net values of the relevant sales orders, BEFORE the

  • Multi-Select Prompt to the Report

    Hi, How to pass value(s) chosen in a Multi-Select Prompt to the Report? Is Prompted will pass the values but My requirement is to exclude those values in the Report. I think we can not use of Presentation Variable in this scenario.. How can I do it?