Changing the content in an IDOC segment at runtime with EXIT_SAPLF050_006

I am using IDOC FIDCC2 type. I have to change some values of the segment E1FISEG.
In EXIT: EXIT_SAPLF050_006, I am making these changes, but after the execution.
When the IDOC is generated, I noticed that the value of this field is not updated in the IDOC segment.
I'll have something misconfigured?
The code is as follows:
CREATE OBJECT wa_obj.                                         "Creando el Objeto.
BREAK dchirra.
IF idoc_contrl-mescod EQ 'MPA'.                            "Chequeando Variante lógica de mensaje valida.
  LOOP AT idoc_data INTO e_idoc_data WHERE segnam = 'E1FISEG'.
    CLEAR: ze1fiseg, ze1finbu.                                  "Limpiando estructuras.
    MOVE e_idoc_data-sdata TO ze1fiseg.                         "Llenando estructura del Segmento.
    CALL METHOD wa_obj->get_data                                "Llamando a estractor del objeto.
      EXPORTING
        reserve    = ze1fiseg-reserve                           "- Campo RESERVE.
        estructura = 'E1FISEG'                                  "- Estructura
      CHANGING
        ze1finbu   = ze1finbu                                   "- Segmento ZE1FINBU.
        ze1fiseg   = ze1fiseg.                                  "- Segmento ZE1FISEG.
Buscando Segmentos Hijos.-
    LOOP AT idoc_data INTO e_idoc_data2 WHERE segnam = 'E1FINBU' AND psgnum = e_idoc_data-segnum.
      MOVE e_idoc_data2-sdata TO ze1finbu.                      "Llenando estructura del Segmento.
      CALL METHOD wa_obj->get_data                              "Llamando a estractor del objeto.
        EXPORTING
          reserve    = ze1finbu-reserve                         "- Campo RESERVE.
          estructura = 'E1FINBU'                                "- Estructura
        CHANGING
          ze1finbu   = ze1finbu                                 "- Segmento ZE1FINBU.
          ze1fiseg   = ze1fiseg.                                "- Segmento ZE1FISEG.
      e_idoc_data2-sdata = ze1finbu.                            "Data Segmento.
      MODIFY idoc_data FROM e_idoc_data2.                       "Modificando data del IDOC
    ENDLOOP.
    e_idoc_data-sdata = ze1fiseg.                               "Data Segmento.
    MODIFY idoc_data FROM e_idoc_data.                          "Modificando data del IDOC
  ENDLOOP.
ENDIF.

IF idoc_contrl-mescod EQ 'MPA'
is this condition is getting satisfied everytime since you are modifying only on this condition.
I couldnot understand you comments as its not in English, however i tried understanding your logic,seems correct .
Please check whether condition mentioned above is getting satisfied or not?
Regards,
Mayank

Similar Messages

  • Chanding the content in an IDOC segment at runtime

    Hi Experts,
    I have funny issue with modification of the data in an IDOC segment. Below is the description of the issue:
         I am using the IDoc type FIDCC2.FIDCCP02. I have to populate the value for field 'KTOSL' of the
         segment E1FISEG. I wrote the logic in user exit EXIT_SAPLF050_006. It is getting triggered and the
         logic is updating the values in the IDOC_DATA internal table properly.
         When the IDoc is generated, I observed that the value for this field is not updated in IDoc Segment.
    Could you please suggest where I went wrong.
    Ramana

    Hi Neha,
    Thank you for the responce.
    We need not to fill all the 21 fields before the field KTOSL. Because I was using the work area to modify the internal table based on the index.
    One thing I can conclude is that we cannot change the values in the standard segments of a stanrd Idoc type. By the time you enter in the processing Functinal Module, the Idoc number would have been generated. So the modification we carry out are just updating the internal table which of no effect. The right way is that find the place where the values getting updated to the data base and change values as required. These changed values can be founf in the data base but not in the IDoc generated.
    Neha one more query for the clarification,could you ever delt with the down payment requests through IDocs. If so please share the details.
    Ramana

  • I have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code?

    i have 5 html pages that share a common header, footer, and sidebar. how do i use my nav bar to change the content of the body without duplicating a lot of code? thank you!

    i inherited the website. It’s for a non-profit and is not very
    sophisticated, and neither am I in webdesign. It currently has multiple
    pages that are identical except for that body section, so whenever i change
    the navigation (in the sidebar) I have to update every html page.  I want
    to have one basic page, and just call in the different body content based
    on the link the user selects from the nav bar. How can i do that using a
    script? i am using Dreamweaver.
    ~ in love and light ~
    Jeannie
    On Sat, Feb 7, 2015 at 4:07 AM, Ben Pleysier <[email protected]>

  • After upgrading to Maverick, when I double click on the attchment I get this message "...could not be saved, because you cannot change the contents of that fold

    After upgrading to Maverick, when I double click on the attachment I get this message "...could not be saved, because you cannot change the contents of that folder. Change the folder properties and try again, or try saving in a different location." It happens for all types of files.
    Any suggestions as how to fix this?
    I'm on a Mac OS X 10.9.3 with Thunderbird 24.5.0

    Thunderbird > preferences (I think on a mac) and under attachments set the folder

  • Firefox crashes whenever i want to install any addon or download any file. Some times i am receiving error while downloading any file like "could not be saved, because you cannot change the contents of that folder"

    I am the user of latest firefox 3.6.6 browser. I am getting problems of frequent crashes whenever i tries to install any addon. The crashes also occures whenever i want to download any file.
    I am also receiving errors while downloading any file like:
    "C:\Users\****\AppData\Local\Temp\******.001.part could not be saved, because you cannot change the contents of that folder.
    Change the folder properties and try again, or try saving in a different location. I already changed it many many times but still the same problem."
    Adobe flash palyer is also giving problems of not responding. I am using updated version of it already. Java is also updated.
    I already uninstalled firefox compeletly and re installed it many many times but still the same problem. I also scanned my computer with avira and malware bytes' Anti malware and got no dection. Please ractify this problem ASAP lest my profession will suffer.
    == Crash ID(s) ==
    b7f518f2-8d86-41ca-8bab-aee632100709; 1d790e10-d8eb-4904-98c9-94bc62100708; f042d319-b9f8-42ed-a8cb-57c7d2100708

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • When firefox trys to auto update, or I manually download the new version, or some but not all downloads off of the web, I get this error message. C:\Users\John\AppData\Local\Temp could not be saved, because you cannot change the contents of that folder.

    First off, when firefox trys to auto update, it fails. It tells me to try and download the new version from mozilla's site. When I try to download the new version I get this: (C:\Users\John\AppData\Local\Temp could not be saved, because you cannot change the contents of that folder.)
    This is the same message I have been getting when I try to download other things off the net. (When I use other browsers to download I dont have this problem)

    Please help.
    It is getting worse
    Adobe flash player is crashing. I already uninstalled and re installed the latest ver. Also it is hanging randomly.
    Please help.

  • How to change the content of GTC (terms and conditions) for Partner

    Hi all,
         We are using R/3 version of ISA B2B site. while creating order thru Shopping Basket we have requirement that We need to provide GTC (General Terms and Condions) for the Partner (View GTC link ).  Right now some default text is displayed in that window (text text text ext text text text text text like that). we need to change this.
    where i can change this text and enter our own terms and conditions.
    Please help me to resolve this,
    thanks in advance
    siva kumar

    Hi Siva,
    the GTC is shown in the JSP b2c/order/terms_and_conditions.jsp. If you have a look at the file, you will find the following code:
    <isa:translate key="b2c.order.termsAndConds.txt.dmy"/>
    The translate tag will render the language dependant text for the resource key "b2c.order.termsAndConds.txt.dmy". To change the content that is shown you can change the resource text or create your own resource key in the corresponding resource file. The resource files are located in the src-folder of the web application DC.
    Best Regards,
    Peter Kraus
    SAP Web Channel Consultant
    http://www.leonardo-it.com

  • Changing the Content of a Document at creation time using Java

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

    Hi,
    I made a ClassObject 'Division' that is a subclass of the
    oracle.ifs.beans.Document,
    and I want to change the content of a Division instance while it
    is being created because I can't change the editor (Epic) that
    creates this object.
    (and it has to be at creation time!)
    To do this, I made a server-side class S_Division that
    implements the extendedPreUpdate method.
    I was able to get the content of the object when that method was
    called for the 4th time
    and that way I could change some attributes of that object that
    depend on that content.
    My problem is that I need to change the origal content into
    something else using that extendedPreUpdate method
    and I don't know how.
    The bean-side Document class has an easy method setContent
    (DocumentDefinition) for changing the content of its instances,
    but the server-side S_Document doesn't!
    So how can I do that using the server-side classes?
    Maybe using the update(OperationState,
    S_LibraryObjectDefinition) method?
    Can someone give me some help or an example that shows me the
    way?
    Thanx,
    Gerd Vanhoof

  • Changing the Site URL of a Sharepoint site changes the content type order

    Description
    Changing the Site URL of a Sharepoint site changes the content type order of all lists that
    * contain folder content types
    * and have a custom content type order
    * where a folder content type is the first content type in order.
    Reproducible behaviour
    1. Create a Team Site in Sharepoint
    2. Create a Task List "Test" on the Team Site
    3. Go to List Settings
    4. The Content Type order is by default
        a. Task
        b. Summary Task
    5. Change the Content Type Order to
        a. Summary Task
        b. Task
    6. Go To Site Settings "Title, description and icon"
    7. Change the Site Url
    8. Go To List "Test" List Settings
    9. The Content Type order now is
        a. Task
        b. Summary Task
    10. Select "Change New button order and default content type"
    11. Here, the Content Type order still is
        a. Summary Task
        b. Task
    Is this a bug? Has anyone noticed this behaviour before?
    Kind Regards,
    Joachim

    Hi Joachim,
    You are not missing something or doing something wrong. i Hope :). This behavior is reproductible.
    The granularity of change is better by Powershell. But by the interface is most user-friendly.
    Maybe that's the reason of this behavior.
    Gilles Martinez
    Twitter
    Blog
    Please mark as helpful/answer if this resolved your post

  • How can I change the content of JTable?

    Dear friends.
    I have an JTable. I create tablemodel for it and fill out it by data.
    In application at the run time I always need to change the content of whole table. For example I have a frame with JTree and JTable. When I click on the tree node I need to retrieve the data about this node in the JTable.
    Advice me please how can I do that and give an example please.
    Thank you.

    SOL I:
    There solution can be simple if u've written a model for it.
    If u are updating the data of the table by the setValueAt() method of the tableModel, in ur calling(mutating code), then just append a sinle line at the end of the method. U just need to fire a data change event corresponding to the event that has happened.
    void setValueAt(Object aValue, int rowIndex, int columnIndex) {
    - - - - - - - ur code
    //then last line can be
    fireTableDataChanged() ;
    OR
    fireTableCellUpdated(int row, int column);
    OR
    fireTableStructureChanged() ;
    depending uopn what has happened.
    SOL II:
    U may also try calling the method fireTableDataChanged(); from the place where the table data is getting mutated.
    like:
    ((AbstractTableModel) table.getModel()).fireTableDataChanged();
    [email protected]

  • Table Control BDC to CHANGE the contents problem

    Hi,
    I am having a problem in BDC. The screen is having a table control and I want to change the contents depending on certain conditions.
    This BDC is not to upload the data but to change already existing data.
    How can I dynamically know the contents of the screen or contents or the row so that I can select the correct row to be changed?

    Hi,
    No its not like that.
    Suppose I want to update/change sheduling agreements <b>not upload</b>
    I will be calling the transaction which will list the scheduling lines in a table control. The order of the lines in table control will be as per logic of SAP's Application program.
    Now when I read the file and how will I dynamically know the exact line which should get selected.
    Say my internal table is having the data to be changed but I can not determine the exact ordering of the records as per table control.
    Hence I am facing the problem to know the exact ordering of table control
    Let me give another example. Using ME12 transaction I am supposed to delete certain rows from info records say having condition '15EC'.
    Now when I call a transction how will I know that for a particular vendor which line will contain this condition value so that can select the line and press delete
    Regards,
    Nitin

  • CATS - It is possible to change the content of the Rejection e-mail?

    Hi all,
    we are in ECC 6.0 and have implemented CATS.
    Do you know if it is possible (and how!) to change the content of the e-mail that is sent to the employee in case of CATS rejection?
    Thanks and regards,
    Cristiana

    Hello, nice idea!
    I did figure out that the program use text elements, however, one is not allowed to change them. I then raised an OSS note and SAP raplied that I couldn't change the text elements - I really don't like the email that is sent from CATS rejection!
    I really ike the sound of your idea. I am not familiar with translations though. Would you be able to detail it a bit more about how to translate a text element?
    When I get to the text element screen, if i follow menu path Goto > Translation, a screen pops up asking me to chose a Target Language. What should I do then? Select the target language to EN (the original language is EN) ? And then, how do I make sure that the program uses the translated text?
    Thanks a lot for your help!
    Cheers,
    Cristiana

  • How to change the content in request at approval stage

    Dear experts,
    We have a requirement like following:
    Frist, User submits a new account request, the field "Position" is set to cerntain value, eg. sales support
    Then, Manager should have the capbility to change the content in field "Position", such as changeing sales support to sales manager, when he approves the request.
    However, it seems that only very few fields can be changed after request submition.
    How could we configure AC to let the managers can change the content in request at approval stage?
    Thanks a lot!

    Tang,
    In the stage for the Manager set the "Change Request" to 'Yes'.  This will open up a few fields for you, including user group, role validity dates, etc.  I do not believe this will open up position though.

  • After setting up my new 4S restoring a backup of my old one, I've renamed the old 3GS in iTunes and changed the content, deleting all my important stuff. Now I'm syncing the old one to my PC. Can I then backup my NEW 4S to  iCloud without messing up all-?

    After setting up my new 4S, restoring a backup of my old 3GS, I've renamed the old 3GS in iTunes and then I've changed the content, deleting all my important stuff. Now I'm syncing the old one to my PC. Can I then after that safely backup my NEW 4S - which now holds all my company information and stuff - to  iCloud without risking to lose it?

    Hi Mcchen425,
    Welcome to the Support Communities!
    As a precaution, I would suggest backing up your iPhone to your computer via iTunes as well as iCloud.  Then you can delete one of your two backups.  The article below will explain all of your options for deleting data or backups from your iCloud storage.
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/ht1766
    iCloud: Managing your iCloud storage
    http://support.apple.com/kb/ht4847
    Cheers,
    - Judy

  • How to change the "content created" date/time in FCPX?

    Since I've had problems importing my whole iMovie event library into FCPX I decided to run some tests with importing individual files (part of iMovie events and originally imported from camera into iMovie). Some of them for some reason got the wrong "content created" date/time in them while in iMovie they have the right date/time set. Does anybody have an idea on how to change the "content created" timestamp?

    I had a bunch of DV files that imported stamped with the file modification date and time.  I did not find a way to change it in FCPX. With FCPX not running, I used A Better Finder Attributes to modify the creation and modification dates of the files in the event folder. FCPX reconnected to them but the event still showed the old range of dates so I created a new event and moved the clips to it. Maybe ther is a beter way but that is how I did it.

Maybe you are looking for