Dynamic Modifications at Runtime - Input_field

Hi,
How do i bind/add a inputfield to a tablecolumn dynamic at runtime?
Thanks,
Morten

Hi Thomas,
Thanks for your reply.
Still not working. I have the following code:
Hope that you can help me the final step.
DATA:
        l_caption TYPE REF TO cl_wd_caption,
        l_table TYPE REF TO cl_wd_table,
        l_table_column TYPE REF TO cl_wd_table_column,
        l_input_field TYPE REF TO cl_wd_input_field,
        l_table_cell_var TYPE REF TO cl_wd_abstr_table_cell_var,
        l_table_standard_cell TYPE REF TO cl_wd_table_standard_cell.
  DATA:
        l_node_po_document_lines  TYPE REF TO if_wd_context_node,
        l_po_document_lines       TYPE wdr_context_element_set,
        l_po_document_element     TYPE REF TO if_wd_context_element.
get all involved child nodes
  l_node_po_document_lines = wd_context->get_child_node( 'PO_DOCUMENT_LINES' ).
  l_table ?= view->get_element( 'TABLEPURCHASEORDERLINES' ).
  l_table_column = cl_wd_table_column=>new_table_column( ).
  l_input_field = cl_wd_input_field=>new_input_field( ).
  l_input_field->bind_value( path = 'PO_LINES_VIEW.PO_DOCUMENT_LINES.PO_NUMBER' ).
  l_input_field->set_enabled( value = abap_true ).
  l_table_standard_cell = cl_wd_table_standard_cell=>new_table_standard_cell( ).
  l_table_standard_cell->set_editor( the_editor = l_input_field ).
  l_table_column->add_cell_variant( EXPORTING the_cell_variant = l_table_standard_cell ).
  l_caption = cl_wd_caption=>new_caption( ).
  l_caption->set_text( 'Some text' ).
  l_table_column->set_header( EXPORTING the_header = l_caption ).
  l_table->add_column( EXPORTING the_column = l_table_column ).
Thanks,
Morten

Similar Messages

  • How to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    PDF 417 Barcode Description given in the Livecycle Designer 8.2
    : PDF 417 Non-Scriptable Barcode. Value must be assigned to this barcode at design time, and this barcode will not update after form object value changes.
    And my question is how to generate a PDF 417 Barcode by assigning a dynamic value at runtime?

    All the information you described points to the problem that reports seems can't generate to a file which already exist. You can verify that by simply doing
    r30run32 C:\AC_REPORT.REP DESTYPE = FILE DESFORMAT = PDF BATCH = YES' desname=c:\temp\ac_report.pdf
    several times. If first time the report is successfully generated in c:\temp\ac_report.pdf, but not the second, third time, then it looks like there is a bug on reports r30run32 executable.
    You may try to find any latest patch for Reports 3.0 to see if patch can solve you problem. But keep in mind Reports 3.0 is de-supported, you are better to move to 6i or 9i reports.
    Thanks,
    -Shaun

  • Dynamic modifications for supplier status , time and rejections.

    Dear QM Gurus ,
    Just want to share a scenario with you and know your views and solution strategies on the same .
    There is need of reduced sampling in which only a few characteristics are visible and availabel for result recording for the following conditions . This is clearly a case of dymanic modification .
    1. Vendor has status certified .(it is a prefered vendor which is allowed reduced sampling and testing ).This certified status will be maintained in Q info record . All other vendors shouldhave full testing ( RR for all MICs of tha plan )
    2.  If a lot from certified vendor is rejected, next two lots should have full testing ( all MICs for RR)
    3. Irrespective of any rejections ,the first lot after every two years has to be fully tested .
    There is full testing for all the other types of vendors and all other cases .
    Can you suggest a step by step procedure for config and master settings for the above dymanic modification ?
    Full points to be awarded for complete and correct answer .
    Ram .

    This is not easy.  First, there is no time based criteria in SAP for recertifying your vendor. I.e. you cannot meet the two-year full-testing requirement with standard SAP.  You also cannot use dynamic modification to change the mics being inspected.  DMR is used to address whether or not testing is done, not the number of characteistics being done.  I.e. it focuses on samples. 
    If you use DMR at the charcteristic level, it tracks each MIC individually, not as a group.  To do so, you would have to use a 'controlling' MIC whereby all the other applicable MIC's are skipped or not based on that one MIC.  So you could create a MIC like "All extra testing MIC's passed".  The tech answers this yes/no and DMR adjust the DMR accordingly.  Then all the other characteristics map to this one.  That is standard but requires you to put the extra MIC in for the tech to answer.
    What I would suggest is the following:  Create a new 01 inspection type.  "01CT for incoming inspection - certified".  Give this new inspection type a different task list usage than your standard 01, say task list usage 501.  I''ll assume your standard 01 inspection type uses task list usage of 5.
    Create your standard plan, (i.e. all MIC's) with a usage of 5.  (Group 15, coutner 01)
    Create your certified plan (i.e. reduced # MIC's), with a usage of 501.  (Group 15, counter 02)
    Assign the material to Group 15, Counter 1.  All vendors will be inspected with this plan.
    Assign the certified vendor/material to both counters, 01, 02.
    Use user exit QAAT0001 (Inspection type determination different from variant 01). First, exit the user exit if not an 01 inspection origin.  Then have the exit perform a  query to see if the vendor is certified.  If not, use the standard 01 inspection type and exit the user exit with no change to the inspeciton type.  If the vendor is certifed, do the following:
    Do a query for inspection lots in the past two years for this vendor/material that used an 01 inspectoin type.  If none are found, use inspection type 01.  (mean no full inspection done in last two years).  Then query for all 01 origin inspection lots for this material/vendor.  If any are found, then check to see if either of the last two lots had a failed UD on it.  If one of them did, it should also use inspection type 01.  Otherwise, change the inspection type to 01CT
    This solution would not use dynamic modification at all.
    FF
    Edited by: FireFighter on Jan 12, 2012 3:48 PM

  • Update was terminated when Dynamic modification rule is changed

    Hi Gurus,
    When short text is changed manually in Dynamic modification rules (QDR2), I saved it "Dynamic modification rule xxx was changed". Next I got the error message: "Update was terminated".
    Detail:
    System ID....   xxx
    Client.......   xxx
    User.....   xxxxxxx
    Transaction..   QDR2
    Update key...   xxxxxx
    Generated....   06.11.2009, 11:54:46
    Completed....   06.11.2009, 11:54:47
    Error Info...   Processeur ABAP : RAISE_EXCEPTION
    I think there is an incoherence in between tables QDDR & QDDRT.
    How can we fix this error?
    Thanks.
    Stéphane

    Hi
    sometimes it happens that system takes some time to save & update the data in the background.
    so wait for some time & again check .It will work.
    The data which if changes do not have any repercation on existing system  can be changed at any time.
    check the tables
    QDDR & QDDRT again
    Regards'
    Sujit

  • Dynamic Modification Rule Counter

    Hello Experts
    I am using DMR in my project. e.g 1 in 10 , 1 in 20. Inspect 1 and skip 10 or 20 etc.
    WHat I would like to know where I am during inspection i.e. counter , at a particular point in time how many lots are skipped so that I know when next one be inspected.
    To clarify further say my rule is inspect 1 and skip 10 . I have inspection 1 and skipped 3 . How do I know that I have skipped 3 and there will be 7 more skipped lots.
    Many Thanks
    Gaurav

    Hi Gaurav...
    Whenever There is Lot creation or Usage decision for a lot,Quality level updated depending upon DMR.
    If you want to see the counter of Dynamic modification along with what are inspection lots which are created,how many accepted and what was last UD...This can be seen through QDL or QDH2.
    Advantage with QDH2 is that you can reset counter.
    Counter can be seen when you execute QDH1/2/3 in "change layout" in addition to current level and next level.
    i hope you will find this useful...
    revert back for any querries...
    Sujit

  • Dynamic modification rule

    Hi, what is dynamic modification rue functionality in qm? pls explain with one example how to use the same.

    DMR: simple words means when you dynamicall want to change the stages of the inspection.that means you want to reduce the inspection or skip the lots or tighten the inspection.
    DMR mainly used for reducing the cost of inspection.
    There are many links which are available with example for the same.
    Re: DM rule
    DMR
    Re: Dynamic modification
    Dynamic Modification Rule (DMR) at lot creation
    DMR - QUALITY LEVEL
    Re: DMR @ Char level
    DMR inspection stage

  • Dynamic Modification Rule (At Lot Level) In Quality

    Dear All
    Please explain me in detail how to use Dynamic Modification Rule (At Lot Level) In quality Module.
    Thanks & Regards
    Rahul Bhardwaj

    Dear,
    In material master under (QM view) active "Skip allow"  indicator.
    Skip lotting in SAP is some what different. SAP does not actual prevent the creation of the inspection lot. It simply sets a status of SKIP on the inspection lot. The lot is still there and if desired, it can be used. Once a characteristic is accessed in the lot, it becomes a normal inspection lot.
    You need to setup an auto UD batch job for processing the skip lots and closing them. Skip lots have their own "wait" time defined in plant QM config settings.
    That means by DMR you can not stop the inspection lot generation.
    Hope clear to you.
    Regards,
    R.Brahmankar

  • Dynamic Modification Rule In Quality Module

    Dear All
    Please explain me in detail how to use Dynamic Modification Rule (At Lot Level) In quality Module.
    Thanks & Regards
    Rahul Bhardwaj

    Hi,
    Dynamic Modification Rule
    Definition
    The basic data record contains the definition of the inspection stages, the dynamic modification time (at lot creation or after the usage decision has been made), and the conditions for the inspection stage change. Inspection stage changes occur on the basis of the inspection results that are recorded for inspection lots and inspection characteristics (that is, on the basis of their acceptance or rejection).
    Use
    You can vary the inspection scope using dynamic modification rules. You can store a dynamic modification rule in one of the following places:
    In the inspection plan at the header level
    In the inspection plan at the characteristic level
    In the inspection setup of the material master record at the inspection type level
    Structure
    A dynamic modification rule contains the definition of the inspection stages, the dynamic modification time, and the conditions that lead to an inspection stage change.
    There are always two options that apply to the conditions for an inspection stage change: An acceptance (OK) and rejection (not OK). The system uses these conditions to update the quality level, which always reflects the current status.
    The functions for maintaining and displaying dynamic modification rules are primarily contained on three screens:
    On the initial screen, you enter the identifier for the dynamic modification rule.
    On the header data screen, you maintain a short text and the blocking indicator, and define the time of dynamic modification (at lot creation or when the usage decision is made) and the reset period.
    The reset period defines the period of time, which must elapse before the quality level again uses the initial inspection stage specified in the dynamic modification rule as the current inspection stage.
    On the inspection stages screen, you edit the inspection stage data (inspection severity, skip, initial inspection stage, and short text). You create the rules for the inspection stage change on this screen.
    In QM, the inspection stage describes a test or inspection status that is based on the inspection history and predefined rules. Different inspection stages mean that there are also different inspection scopes and/or inspection severities.
    Creating a Dynamic Modification Rule
    1.Choose Logistics ® Quality management ® Quality planning ® Basic data ® Sample ® Dynamic modification rule ® Create.
    2.Enter the identifier for the dynamic modification rule on the initial screen or choose Copy to use an existing dynamic modification rule as a copy model.
    3.Choose Dynamic modification rule to carry out the following activities on the header data screen:
    Edit the short text for the dynamic modification rule.
    Define the time of dynamic modification (at lot creation or usage decision).
    Define the reset period.
    Set the blocking indicator if you want to prevent the dynamic modification rule from being used in an inspection plan.
    4.Choose Next screen to carry out the following activities on the inspection stages screen:
    Define inspection stages.
    Define inspection severities for individual inspection stages.
    Identify skips.
    Identify the initial inspection stage.
    Maintain short texts for the inspection stages.
    5.Choose Stage change to carry out the following activities on the screen for creating the inspection stage change:
    Define the specifications for a stage change for an acceptance (OK)
    Define the specifications for a stage change for a rejection (Not OK)
    6.Choose Next screen to return to the inspection stages screen and save your entries.
    When you save the data, the system prompts you for a confirmation. If you want to include the dynamic modification rule in the allowed relationships for sampling procedures and dynamic modification rules (this is only necessary if a sampling procedure is used in a sampling scheme), you can switch directly to the assignment transaction by confirming this prompt. You define the assignment of sampling procedures and dynamic modification rules in this screen.
    If you do not confirm the prompt, the system returns directly to the initial screen and confirms that it has created the dynamic modification rule.
    Hope this helps.
    Award points if useful.
    Regards,
    Tejas

  • QM:Maximum skip duration in dynamic modification rule

    Hi
    Can anybody explain how the system behaves with   
    QM:Maximum skip duration in dynamic modification rule.
    Gobinathan G

    Hi,
    In dynamic modification rule you maintain the inspection modification based on the quality level. You mention the maximum skip duration for resting the skip status if the inspection lot is not created during the specified period after creation of last inspection lot. That means the Skip status will be reset to Inspection status if the lot is not created during the specified period & you will have to inspection the lot instead of skipping. If the lot is generated within the period, then you will be able to skip the inspection.
    Regards,
    Prashant

  • How to create dynamic room in runtime execution?

    Hello All,
    Can you please suggest me how can I create dynamic room in runtime execution? I do not want to create fixed room from the room consol. I want to create a new room & also delete it after work complete in runtime execution.
    thanks,
    krish

    Hi Krish,
    If you are using your own server to do ExternalAuthentication, then you can
    user server to server API's to do that. Please refer to Server2Server apps
    in the SDK's sample apps folder.
    Else you might have to use AccountManager with room
    owner credentials. But the Server2Server aprroach is highly recommended.
                    private var acctMgr:AccountManager = new AccountManager();
                    acctMgr.accountURL = m_accountURL;
                    acctMgr.authenticator = authenticator;
                    acctMgr.addEventListener(AccountManagerEvent.LOGIN_SUCCESS, authenticateSuccess);
                    //acctMgr.addEventListener(AccountManagerEvent.LOGIN_FAILURE, authenticateFailure);
                    //acctMgr.addEventListener(AccountManagerEvent.ACCESS_ERROR, onAuthenticationAccessError);
                    public function authenticateSuccess(event:AccountManagerEvent):void {
                       acctMgr.addEventListener(AccountManagerEvent.ROOM_DELETE, onRoomDelete);
                       acctMgr.deleteRoom(name, template);
                    public function onRoomDelete(event:AccountManagerEvent):void {
    Thanks
    Arun

  • How to Implement Dynamic Modification Rule for Material & multiple vendor Combination

    Hi Team,
         In dynamic modification rule for Material &  vendor combination, i have maintained material & vendor in Inspection plan at Material Assignments
    1.If i purchase same material from different vendors then how to implement ?

    Hi Balaji,
    I am not sure if i have followed your requirement.
    What do you want to do with Vendor Z? Do you want to inspect each lot from Z?
    If yes:
    Then Create 2 Inspection plans with same Operations and Same MICs, In Material Assignment, mention Vendor as Z so that 1st inspection plan will only be for Vendor Z. Do not enter DMR in Header.
    In 2nd inspection plan Enter DMR and do not mention any vendor so this plan will be applicable for all vendors except Z.
    If No:
    Then create Qm info record for vendor Z with "No inspection" set in QI06.
    Amol.

  • Dynamic modification is not working

    Dear Friends,
    I have created a dynamic modification rule as below:
    1) at lot creation
    2)
    stage.   inspsevr.    skip.      ISt.            short text.       stage ch.    no of insp.  max skip dur.  new stage.    no. rej.   new stage
    10        4                            initial                Insp1                x                    1                                     20                1               10
    20                         skip                             no insp               x                    2           10 days            20                1                10
    3) What do I expect?
    After 1 inspection & acceptace 2 lots should be skipped, then again inspection.
    But this not happening. every time I have to do  results recording, UD and Stock posting.
    4) Material master settings
    100% inspection, inspection with task list, automatic assignments, check char,
    5) lot is created after each GR for batch & material combination
    6) QP01
    I have assigned the dynamic modification rule at header level & at lot level.
    Regards

    Hello Friends,
    Thanks for your support & sorry for the delayed reply.
    I have progressed in DMR & it is working.
    I have configured as below.
    1) Defined DMR with stages (2 skips after one OK condition)
    2) Activated DMR at usage decision.
    3) Assigned the DMR at inspection plan header level at material and task list level.
    4) SKIP check box ticked in material master
    Results are as below:
    1) First lot created with status results recording required.
    2) The next inspection stage in the quality level is not updated till the time I dont complete UD for the previous lot.
    3) After I do UD the next stage is updated depending upon accepatance or rejection of characteristics.
    4) If I dont do UD for the previous lots then inspection stage does not change for the next lots. Ex: If the next stage is a SKIP then "n" number of lots are skipped till the time I dont coplete the UD for one of previous lots.
    5) But I cant activate DMR at lot creation level because I cant skip lots w/o confirming the results recording.
    These are my observations. Request to comment.
    Regards

  • Change Inspection typ and keep inspection stage of dynamic modification

    Hello,
    Our QC departement splitted into 2 departments and each got their own materials to check.
    Now both material groups will get a different inspection typ B and C instead of the old insp Typ A.
    We use dynamic modification rules and all materials have their inspection stages based on vendor and insp. typ. There is only 1 plant.
    When I assign a new insp. typ B or C to a material the next inspection lot of course will generate a new record in QDQL starting with the lowest insp. stage. But I need the last stage of the old insp typ A!
    Copies of records A to B and C in QDQL are not so easy because vendor and inspTyp are not part of the key and SAP uses a counter instead.
    Any ideas how to get the old insp. stages to the new insp types in the quality level?
    br Gerold

    Well, then youmight consider to rethink if this approach is the best option, as you can see that it limits your way of modifying your processes. If one time you have ten different departments you would need ten different inspection types...for one inspection lot origin. This then would even increase if we think of different lot origins (returns, recurring inspection, ....).
    Regards
    MH

  • Dynamic Modification Inspection stages

    Hi All,
    When we are creating a Dynamic Modification Rule, i cant seem to understand the logic (process) behind the Inspection stages screen. Even though i tried reading the SAP help file cant seem to understand it. Please explain it with an example with a step by step guide.
    Regards,
    DTD

    Hi,
    In DMR,first we need to maintain all stages which we required. i.e 1,2,3,4
    Then for each stage we maintain severity.
    i.e suppose for stage 1 you want inspection without sampling scheme,then maintain severity 001 for stage 1.
    suppose for stage 2 you want Normal inspection,then maintain severity 001 for stage 2.
    suppose for stage 3 you want Tightened inspection,then maintain severity 006 for stage 3.
    Then for each stage we maintain No. of inspections.,New insp. stage for inspection OK,means for after this stage inspection is OK,we maintain which next stage for inspection.And if rejectionwe maintain there which next stage inspection has to take.
    Inspection Stage Corresponds to a Skip (Skip Stage)
    If you set this indicator, you define the inspection stage as a skip. This means that the inspection  characteristic or material is not inspected.
    in this case, you do not enter an inspection severity for the inspection stage.
    A skip means that due to good quality in the past, an inspection is not required for a characteristic of an inspection lot.
    Hope this help you.
    Regards,
    Raja.

  • Create Dynamic Structure at Runtime via ALV-Methods!

    Hi Experts,
    i try to create at the ABAP Runtime a new Structure.
    FOR EXAMPLE: I have a internal Table "database" and i dont know their Structure or Typ.
    MY Question: How can i get the structuretype for this internal Table "database" ??
                                    I thought that it is possible with ALV-Methods, but i dont find the right way.
    First Step:       I must get the structure of this internal Table.
    Second Step: I must create a workarea/ line of this internal Table, that i can work row for row with the table.
    Have someone an code example for me, because iám very confused about this Problem.
    With kind regards.
    Ersin Tosun

    Hello,
    For this specific requirement, SAP has provided RTTI class.
    Below is a code snippet for your ready reference. In this example we're trying to get the structure of the dynamic table <ITAB> whose structure is not defined till run-time.
    TYPE-POOLS: abap.
    PARAMETERS: p_table TYPE tabname.
    DATA: dref TYPE REF TO data.
    FIELD-SYMBOLS <itab> TYPE STANDARD TABLE.
    CREATE DATA dref TYPE STANDARD TABLE OF (p_table).
    ASSIGN dref->* TO <itab>.
    DATA: go_tab_descr TYPE REF TO cl_abap_tabledescr,
          go_struc_descr TYPE REF TO cl_abap_structdescr,
          wa_comp TYPE abap_compdescr.
    go_tab_descr ?= cl_abap_tabledescr=>describe_by_data( <itab> ).
    CHECK sy-subrc = 0.
    go_struc_descr ?= go_tab_descr->get_table_line_type( ).
    LOOP AT go_struc_descr->components INTO wa_comp.
      WRITE: / wa_comp-name.
    ENDLOOP.
    I must create a workarea/ line of this internal Table, that i can work row for row with the table.
    Sorry i missed the Step 2:
    FIELD-SYMBOLS: <itab> TYPE STANDARD TABLE,
                   <wa> TYPE ANY,
                   <val> TYPE ANY.
    LOOP AT <itab> ASSIGNING <wa>.
      LOOP AT go_struc_descr->components INTO wa_comp.
    *   To access the components of the structure dynamically
        ASSIGN COMPONENT wa_comp-name OF STRUCTURE <wa> TO <val>.
      ENDLOOP.
    ENDLOOP.
    BR,
    Suhas
    Edited by: Suhas Saha on Nov 18, 2010 7:26 PM

Maybe you are looking for