Urgent clearing data in container for free text

I HAVE A CONTAINER FOR FREE TEXT.
I HAVE A CREATE BUTTON IN MY SCREEN EWHEN I PRESS CREATE IT ASKD FOR ID AND FREE TEXT THEN I SAVE  AND IT GETS SAVED IN A ZTALE TABLE.
WHEN AFTER SAVING IT I GO TO INITIAL SCREEN AND PRESS CREATE AGAIN THEN IT ASKS FOR ID AND IN THE CONTAINER I SEE THE FPREVIOUS TEXT.
CAN YOU GUYS LET ME KNOW AS TO WHAT I NEED TO DO.
I TREID CLEARING AND REFRESHING MYTABLE WHICH I HAVE USED IN THE FOLLOWING CODE.
pbo
if editor is initial.
CREATE OBJECT TEXTEDIT_CUSTOM_CONTAINER
EXPORTING
CONTAINER_NAME = 'TEXTEDITOR1'
EXCEPTIONS
CNTL_ERROR = 1
CNTL_SYSTEM_ERROR = 2
CREATE_ERROR = 3
LIFETIME_ERROR = 4
LIFETIME_DYNPRO_DYNPRO_LINK = 5.
IF SY-SUBRC NE 0.
add your handling
ENDIF.
CREATE OBJECT EDITOR
EXPORTING
PARENT = TEXTEDIT_CUSTOM_CONTAINER
WORDWRAP_MODE = CL_GUI_TEXTEDIT=>WORDWRAP_AT_FIXED_POSITION
WORDWRAP_TO_LINEBREAK_MODE = CL_GUI_TEXTEDIT=>FALSE
EXCEPTIONS
OTHERS = 1.
refresh mytable.
call METHOD editor->SET_TOOLBAR_MODE
EXPORTING TOOLBAR_MODE = 0.
*call METHOD editor->SET_ENABLE
*EXPORTING ENABLE = ' '.
CALL METHOD editor->set_readonly_mode
EXPORTING
readonly_mode = 1.
ENDIF.
CLEAR MYTABLE.
FREE MYTABLE.
endif.
IF SY-SUBRC NE 0.
CALL FUNCTION 'POPUP_TO_INFORM'
EXPORTING
TITEL = V_REPID "--> program name
TXT2 = SPACE
TXT1 = 'Error in flush'.
ENDIF.
tHANKS
let me know
swathi

For example, this program works really well with saving long text using the SAVE_TEXT function.  Here you need to create the object/id in SE75.  For this program you enter the id on the right like 999999 and enter the text on the left, execute and the text is saved, now change the id to 999998 and hit enter, notice the text is blank, now enter 999999 again, notice the text for this id has come back,  this is because the program uses READ_TEXT to retrieve the text.
report zrich_0001.
data:
      dockingleft  type ref to cl_gui_docking_container,
      text_editor    type ref to cl_gui_textedit,
      repid type syrepid.
data: begin of header.
        include structure thead.
data: end of header.
data: begin of lines occurs 0.
        include structure tline.
data: end of lines.
data: textlines type table of tline-tdline,
      wa_text type tline-tdline.
data: xthead type thead.
parameters: p_id(10) type c.
at selection-screen.
  if p_id is initial.
    message e001(00) with 'Enter an ID'.
  endif.
at selection-screen output.
  repid = sy-repid.
  if dockingleft is initial.
    create object dockingleft
                exporting repid     = repid
                          dynnr     = sy-dynnr
                          side      = dockingleft->dock_at_left
                          extension = 300.
    create object text_editor
                exporting
                     parent     = dockingleft.
  endif.
  if p_id <> space.
    xthead-tdobject = 'ZPT_DET'.
    xthead-tdid     = 'Z001'.
    xthead-tdname = p_id.
    clear lines. refresh lines.
    call function 'READ_TEXT'
      exporting
        id                            = xthead-tdid
        language                      = sy-langu
        name                          = xthead-tdname
        object                        = xthead-tdobject
      tables
        lines                         = lines
     exceptions
       id                            = 1
       language                      = 2
       name                          = 3
       not_found                     = 4
       object                        = 5
       reference_check               = 6
       wrong_access_to_archive       = 7
       others                        = 8.
    clear textlines.
    loop at lines.
      wa_text = lines-tdline.
      append wa_text to textlines.
    endloop.
  endif.
  call method text_editor->set_text_as_r3table
     exporting
           table              = textlines
     exceptions
           others             = 1.
start-of-selection.
  call method text_editor->get_text_as_r3table
     importing
           table              = textlines
     exceptions
           others             = 1.
* Set SAPscript Header
  clear header.
  header-tdname =  p_id .         "Name
  header-tdobject = 'ZPT_DET'.       "Object
  header-tdid = 'Z001'.              "Id
  header-tdspras = sy-langu.
* Move text from container to function module table
  clear  lines.  refresh lines.
  loop at textlines into wa_text .
    lines-tdline = wa_text.
    append lines .
  endloop.
  call function 'SAVE_TEXT'
       exporting
            client   = sy-mandt
            header   = header
       tables
            lines    = lines
       exceptions
            id       = 1
            language = 2
            name     = 3
            object   = 4
            others   = 5.
Yes, this is implemented using a selection screen, but the same principals apply and this can  be easily converted to a dynpro application.
Regards,
Rich Heilman

Similar Messages

  • GR based IV to be checked for free text requirement

    Hi All,
    Is there any option that if we create shopping carts for free text requirement,GR based IV should be checked automatically in purchase order created for that shopping cart.Or will this get replicated depending on vendor master we select.Please suggest.
    Thanks.

    Hi,
    As of standard, this setting in PO would come from Vendor master only. But in case you want this to happen for all free text items, then you can use the doc change badi as suggested by Masa. You should use the po change method to pass this indicator.
    Regards,
    Sanjeev

  • Purchasing group for free text SC

    Hi everyone,
    We have a requirement to change the purchasing group for free text & catalog SC's. We are using SRM 7.0. Normal procedure is to select the material from catalog, purchasing group is selected  & once it is approved a PO is created.
    But, now the requirement is that if a user is selecting a catalog material, then the selection of purchasing group should be restricted as per the business.
    And if the SC is being created from Free text, then the purchaser's selection should be restricted to very few options in drop down.
    Is it possible? I was thinking if the selection of purchasers could be restricted  using BADI: BBP_PGRP_ASSIGN_BADI or BBP_PGRP_FIND BADI. But, there is no option for differentiation based on SC created using Catalog & SC's created from free text.
    Can anyone please help me with this.
    Thanks & Regards,
    Bhakti

    Hi Everyone,
    Thanks for reply.
    @Muthu: I explored the tables, but the only difference I could find between the catalog & free text SC materails is that the product id is missing for free text SC. Based on this I am unsure if any BADI can be used. Kindly let me know, if the BADI's can be called on this criteria.
    @ Virendra: I doubt if that, that can be solution, since the product cataegory for free text cannot be fixed. It will depend on user requirement.
    Pls help me to define the purcahsing groups for free text SC's.
    Thanks & Regards,
    Bhakti

  • MN04 not working for free text PO

    Hi All,
    I have maintained a condition record through MN04 in purchase organisation, company code and vendor combination. This condition record is working fine for regular purchase orders. But it is not working for free text PO's. Could you please guide me why is it so?
    I am maintaining same purchase organisation, company code and vendor combination for free text PO also. Question is why it is working for a purchase order with material inside it and why it is not working for purchase order with out material.
    Thank you all in advance

    Hi,
       Seems you are using a custom print program and form. I would suggest to change the program to SAPFM06P, form routine as "ENTRY_NEU" and the form as "MEDRUCK" in NACE transaction for the output type and check the scenario again. Also cross check the settings with the KBA: 1829682 - Output type is not determined in Purchase order
       If its getting triggered, then check the custom program and the form with the help of technical team.
    Regards,
    AKPT

  • If i buy itunes match will i be able to listen to my music without data or internet for free?

    i only have an 8 gb iphone 4 and i have over 1000 songs in my itunes library. if i subscribe itunes match will i be able to have all my songs on my phone and be able to listen to it all for free without using my data or internet?

    Hi,
    You will need to use your data or internet when you are out and about. You will have access to all your nusic in the cloud but you will need to pre-download music whilst you have an internet connection.
    Jim

  • Price differece between purchase req and PO for free text purchase

    Hi there
    Has anyone found a good solution for the following problem. 
    A free text purchase requisition item is created with a value = x.  The buyer goes out to quote (not using SAP RFQ - manual) and comes back with a price change.  The buyer creates the purchase order referencing the purchase requisition, but they need to change the value to x+10. 
    The client wants to stop the purchase order been created if the value is above a certain percentage.  The standard settings in the system are for material values.  Does anyone know how to extend this to a short text item on a purchase requistion?
    Thanks
    Roz

    Hi,
    This is not possible to achieve in SAP standard functionality.
    You can do one thing, keep Price field for the PO Document type of Text Purchases as display, which will not allow user to change the price for Text POs.
    Use Release Strategy for Purchase Requisitions and keep changeability for the Release indicator as "4" and % Changeability as 10%. And ask user ro change the price in ME52N only instead of changing it in PO. If it will increase more than 10% the PR Value then system will reset the release and this PR needs to be released again.
    If it is not acceptable then you can try it with user exit "MM06E007" - Change document for requisitions upon conversion into PO

  • Data Dictionary View for Procedure Text

    Hi,
    Is there a data-dictionary where I can see the body of procedures. In fact, I received a request from a collegue to give him the procedure name which access a table "table_1".
    So, my idea is to write a query as follows:
    SELECT <procedure_name> FROM <data_dictionary> WHERE <text> LIKE '%table_1%'.
    Thanks in advance.

    You can try with DBA_SOURCE or USER_SOURCE.
    i.e.
    SELECT NAME FROM DBA_SOURCE
    WHERE OWNER='<OWNER NAME>'
    AND TYPE='PROCEDURE'
    AND TEXT LIKE '%table_1%';
    Regards,
    Sabdar Syed.

  • Clearing date for the payment invoice through APP

    Hi All,
    I have some payment invoice which falls net due date on sunday so i can't able to run app on sunday(holiday)  so i use to run on saturday for getting the discount before the net due date.  While paying like this the system is taking clearing date and value date as sunday as per the net due date of the invoice, which is on holiday for the banks instead of what i have given in the payment parameters as saturday.
    what can i do for this to get payment parameters date as clearing date for the invoice.
    In the payment method for this invoices the payment per due date check box is unchecked in the configuration.  If i select this check box is it works for payment parameters date as clearing date.
    Please help me on this issue urgent.
    Thanks @ Regards
    Nandha

    Hi Jigar,
    Thanks for ther reply,
    that all different issues,
    My issue is the user run the payment run on saturday  with posting date as saturday which the invoice are  due on sunday in the clearing invoice they are getting the clearing date as sunday which is holiday for banks. 
    So I need to get clearing date as saturday for that net due date as sunday invoices why because i giving the posting date as saturday.
    Please suggest me what should i do for this issue.
    Thanks & Regards
    Nandha

  • Can Flex data visualization sdk be used for free?

    I am not interested in the soure of the data visualization component as such,but I plan to use it(binary) just to create the swf files and deploy on a website. I know that Flex SDK is free. But can i use the data visualization component with the Flex SDK(command line) for free?
    I am actually able to use it and do not see any watermark. Just wanted to make sure its free use is permitted under the license.
    Thanks.

    Thanks for the link Paul.
    I am still a bit confused. Let me clarify a bit more.
    The 'Get the free Flex SDK' link in Flex Homepage (http://www.adobe.com/products/flex/) lists the following downloads:
    1. Adobe Flex 3.4 SDK
    2. Adobe Flex 3.4 Data Visualization Components for Flex Builder
    3. Adobe Flex 3.4 Automation Libraries for Flex Builder
    I downloaded 'Adobe Flex 3.4 SDK' and 'Adobe Flex 3.4 Data Visualization Components for Flex Builder' and unzipped the files, and merged the contents of the two unzipped folders(copied to appropriate folders).
    So now, using the command line mxmlc I can use the chart components and I do not see any watermark.
    And I do not intend to buy Flex Builder as I just use the command line compiler and a simple text editor. So do I still need to pay the cost of Flex Builder professional(for ethical reasons)? Or since I dont use Flex builder, am I permitted to use the data visualization components for free? Technically there is nothing blocking me to use it free, like the need of a license key etc.

  • Free Text / Catalog Shopping Cart

    Hi,
    I am unable to distinguish the logic required for Free Text and shopping cart  catalog.
    On what basis would i distinguish the logic to the workflow.
    Can anyone help me in this regards,
    I am facing the same issue for
    Cost centre Approval
    Prduct Category approval
    Spend limit Approval.
    For shopping Cart, How do i create the logic where there would be a distinguishing condition for the above mentioned approval process.
    kindly help me !
    shanky
    Edited by: shanky s on Jun 15, 2010 9:23 AM

    Hi,
    If you are using Application Controlled workflow then the starting conditions for each workflow are defined in transaction SWB_COND.
    The attribute &_EVT_OBJECT.EXISTFREETEXTLINEITEM& ( &EC Requirement Coverage Request.Free entry exists& ) can be used to to distinguish between free text items and catalog items. In this transaction you can search for the other attributes you wish to use in the start conditions. You can also see the list of attributes via transaction SWO1. Enter Object/Interface Type = BUS2121. Hit display and expand the attributes menu.
    Kind regards,
    Siobhan

  • Searching for a text in multiple vi's

    I have to search for a particular text ("c:\" to be exact) in files that make up a project (about 350 of them). (My task is to replace absolute paths with relative paths). I tried to search within files using windows explorer search feature but it reurned no result (maybe the vi's are not stored as text files). So how may I achieve the given task?
    (Thanks in advance to all those good people out there who help people like us. What would I do without your guidance? Have a very productive valentine's day)

    In LV 7.1 I am able to do a search on the text from an Enum used as
    a state diagram selector.  In fact, I can even specify 
    whether the state is to be visible or not.  I will find all the
    Enums with that state exposed (ie "Init") as well as the case statement
    with the string in it.  Very useful.
    However,
    in LV 8.5 it no longer finds the enums or the case!  It doesn't
    even find plain strings used for free text on the BD or FP, which 7.1
    will gladly do.  It seems as if 8.5 only wants to find
    labels.  This is not quite as useful.
     I tried searching this topic but could not find any comments.  Anybody clue me in on what I'm missing?

  • Change price on free text order

    Hi,
    I use service bbpsc02.
    After return from catalogue the price field is only in display mode. I would like to change the price in EB for free text orders

    Hello,
    You have to create a new version (01) in the exact IMG spot for Error message. Then assign user paramter (SU3) 'MSV' with value '01' to those users who should get errors.
    Thanks,
    Venu

  • Text TEN to 150 for free 10GB data.

    So, I've decided to give EE a go as their coverage is far better than my current provider who'm I've been with for many years.I've decided to try things on PAYG first, just to make sure it lives up to my expectations.With my new PAYG card, it advised me to Top up to get 10GB 'on us'....simple top up, then text TEN to 150!And thats it! Nothing happends.I get a reply 'We Couldn't recgnise your Response!' I've used my PAYG phone, Data, and Texts..but still nothing added to my account.I'm constantly seeing a clock counting down the time I've got left to claim this extra 10GB.. Any Ideas?

    It will give you 100GB a month for free for next two months ☺

  • Urgent need for Free Goods configuration

    Hi,
         i need a document which have steps to configure free goods.
    i created a condition record using VBN3 using condition NA00 but free goods doesn't come.
    Requirement is
    Customer buys 10 items whose item catg is TAN and 1 item is free.  so cust pays only for 9 items.
    free good is not coming as sub item. i got stuck. please help .
    anybody plz send document which have steps to configure.
    my email id is [email protected]
    Thanks
    Afsar

    Free Goods Determination in Sales Order
    Free goods has the following limitations:
    - Free goods can only be supported on a 1:1 ratio. This means that an order item can lead to a free goods item. Agreements in the following form are not supported: ‘With material 1, material 2 and material 3 are free of charge‘ or ‘If material 1 and material 2 are ordered at the same time, then material 3 is free of charge‘.
    - Free goods are not supported in combinations with material structures (for example, product selection, BOM, variants with BOM explosion).
    - Free goods are only supported for sales orders with document category C (for example, not quotations).
    - Free goods are not supported for deliveries without reference to a sales order.
    - Free goods cannot be used in make-to-order production, third-party order processing and scheduling agreements.
    - If you defined a free goods for variants in a generic article (only SAP Retail), you can only process the variants in the purchase order and goods receipt individually (as single articles). In other words, you cannot process them using the generic article matrix.
    4.6x
    Not all Sales Order can be used for free goods determination.  You have to check the SD document category if it does not work.  Only category 'C' are supported.  Check transaction VOV8.
    Assume that you want to configure an inclusive FREE goods routine.  Customers must order a minumum quantity of 5 before any free goods can be assign.  For every quantity of 3, the customer will be given 1 free goods.
    WC07 - Maintain Number Range Intervals
    e.g.
    No   From number       To number
    01    0000010000         0000099999
    IMG -> Sales and Distribution -> Basic Functions -> Free Goods ->
    Maintain Access Sequences
    New Entries
    Acsq
    NA00
    Save
    Maintain Condition Types
    New Entries
    Ctyp   Name             AcSq
    FREE  Free Goods    NA00
    Save
    Maintain Pricing Procedures
    Procedures
    New Entries
    Procedure   Description
    FREE           Free Goods
    Select Procedure FREE then click Control data
    Step   Cntr   Ctyp
    10       10      FREE
    V/N6 - Activate Free Goods Determination
    Assign Order Type OR with Document Procedure A with Procedure FREE
    VBN1 - Create free goods determination
    e.g.  FREE inclusive
    Material  Min qty   From   are free good   Calc Rule   Free Goods
                           5           3                1                      1                1
    In this example, if you create a Sales Order for a quantity of 10, SAP will prompt you 7 as the customer order qty and 3 will be free.  Customer only pay for the 7 quantity.
    Free goods –
    Free goods play a large role in price negotiations with your customers. As a result, free goods are determined to be placed in sales document automatically. In retail, chemical industry or consumer goods industry, it is common to provide discounts in the form of free goods.
    Inclusive Bonus Quantities – Free goods can be part of order quantity not included in the invoice (billing). This is called inclusive bonus quantity. The ordered goods and the free goods both involve the same material. The quantity units of the free goods and the ordered goods must be the same.
    Exclusive Bonus Quantities – Free goods that take the form of extra goods that are free of charge are called exclusive bonus quantities. In this case, the extra bonus quantities are not typically included in the invoice (billing). This can either be an additional quantity of the goods ordered or it can be another article. The exclusive free of goods appear in the SD document as an individual ‘free of charge’ item.
    Both types of free goods are treated in the same way in the sales order. The material that has been ordered is entered as a main item (TAN) and the free item (TANN) is automatically displayed as a sub item. The item category determines how the item is controlled later in the business process.
    The system re-reads the free goods master record in the sales order if the quantities in the main item change or if the pricing date changes. The system then deletes the sub items and re-creates them. Any manual changes to the free goods quantity are lost.
    Note: If pricing is re-run in the sales order, it does not affect the free goods determination.
    The condition technique is used for free goods. Free goods are generally regarded as a supplement to the pricing agreement for a material. You can define master records for free goods at any level such as material, customer/material, price list category/currency/material or customer hierarchy/material. The transaction code is VBN1 and condition type – NA00 which automatically gets converted into R100 during sales document processing.
    You can restrict a free goods condition master record for one level in many ways –
    a. Validity period: the condition is only valid within this period
    b. Lowest quantity: the condition comes into affect when this quantity has been exceeded.
    c. Delivery control:
    d. Calculation type:
    e. Scales
    You can process different master data with the same key for inclusive and exclusive bonus quantities at the same time. You only need to press a button to switch between two types of discount. When you enter an exclusive bonus quantity, an extra entry line appears where you can enter the free material if it is not the same as the ordered material.
    When you specify a calculation rule, you decide how the system determines the free goods quantity in the sales order from the additional and document quantities.
    a. The free goods quantity is the quantity that is calculated from the discount quantity (not the minimum quantity)
    b. Additional quantity is the quantity delivered free of charge
    c. Document quantity is the quantity entered by the person creating the sales order.
    Three calculation rules are provided by the system i.e.
    Prorated – the system calculates the free goods in right proportion to document the quantity. For example – if 20 units are offered for free for 100 units in the condition record and the customer orders 162 units, then the system calculates 162 * 20/100 (rounded off) as free goods.
    Related to units – 20 units are given for free for every 100 units ordered. In the above case the customer would only get 20 units free as he placed an order for 162 units.
    Whole units – the customer would not get any free goods if he doesn’t match the exact quantity proposed. That is, in the above case, the customer doesn’t get any free goods as the ordered quantity did not match 100 units. Anything below or over the mark will not be qualified for a free good.
    Calculation rules are stored in the system in the form of ABAP/4 code. You can also define your own rules by using transaction code VOFM (system modifications).
    The free goods determination procedure contains a list of condition types for the free goods. One access sequence is assigned to each condition type and each access sequence contains one ore more accesses and each access contains exactly one table. This represents the search key that the system uses to search for valid condition records.
    The free goods determination procedure is assigned to sales area + document pricing procedure + customer pricing procedure just as in the case of pricing procedure assignment as free goods are generally regarded as a supplement to the pricing agreement for a material.
    If the search is successful, the system generates a sub item for free goods in the document. The item category is assigned with the item category usage FREE.
    You can activate an analysis of the free goods determination in the sales document. The system then displays detailed information on how the free goods were determined.
    Reward points if useful
    Message was edited by:
            SHESAGIRI GEDILA

  • Service procurement for the free texts ( Multiple line items in PO)

    In the service procurement for the free texts ( Multiple line items in PO)referring to the same  Contract we are cretaing the POs
    thro ME59 ( Program RM06BB20)  an unusual error message appears as under:
    "_Material/Service group STGOP2 does not exist"_This Material group is unavailable in T023 as well.
    We checked the same issue by recreating with the exact data in the Test environment and everything works OK
    We are working on the R3 version 470...
    Any body faced such an issue ?
    Any clues pls?
    Regards,
    Nagarajan

    Hello,
    We have faced another issue of the same nature while a PO is being created using the tcode ME21N for service free text items referring a PR ( Service item has no Contract assigned but a fixed vendor)
    The error relates to SE419 ( Mat grp 'XXXX' does not exist)
    Any takers..
    We are using a custom doc type  for the PR
    Any hep /clue is appreciated
    Regards,
    Nagarajan

Maybe you are looking for

  • "cacheHostInfo is null" and Add-SPDistributedCacheServiceInstance : Object reference not set to an instance of an object.

    I am working on a standalone install Sharepoint 2013 (no Active Directory). I found newsfeed feature is not available and checked Distributed Cache service is stopped. When start it "cacheHostInfo is null" is returned. I checked the Windows service "

  • Is the Illustrator SDK thread-safe?

    After searching this forum and the Illustrator SDK documentation, I can't find any references to a discussion about threading issues using the Illustrator C++ SDK. There is only a reference in some header files as to whether menu text is threaded, wi

  • Report Painter for Creating Report in Group currency

    Dear all, I have created a report using report painter.  I but currently the figures are in Local currency.  May I ask how can I convert these figures into Group currency?  Thanks.

  • Multiple Delegation types

    Hi ,     Here is my issue :        I have created a subtype of object BSEG and defined it as delegation type for object BSEG.       Now I have another requirement to create a subtype of object BSEG and need to deifine this as Delegation type .    Can

  • Simple calculation using input data

    Hello, I know this has to be simple for most people in this forum but I have been trying to figure this out for many hours. Here's what I am trying to do: I created a numeric field that a user enters a number. I want this number to be multiplied by .