Assign field from Extended Structure

Hi, friends
I'm tryin to Assign the field GPARN (Partner Number) from PO Screen, but is occuring a Short Dump. I saw that WRF02K is a extended structure.
How can I assign a filed value from a Extended structure ?
I'm using the code bellow.
        DATA: v_gparn(21),
              gs_gparn TYPE wrf02k-gparn.
        FIELD-SYMBOLS: <fs_gparn> TYPE ANY.
        v_gparn = '(SAPLEKPA)wrf02k-gparn'.
        ASSIGN (v_gparn) TO <fs_gparn>.
        <fs_gparn> = it_ekpo-lifnr.
tks to all.

Tks for all..
Now the error don't occurs, but the value that i neet to transfer to the field on PO didn't appears on the screen..
This program is on the Bapi    ME_PROCESS_PO_CUST in the PROCESS_HEADER method, but when the program return to Purchase Order, the value that I need don't appear.
someone know how to send this value to PO ?
this is the correct code:
        DATA: v_gparn(22),
              gs_gparn TYPE wrf02k-gparn.
        FIELD-SYMBOLS: <fs_gparn> TYPE ANY.
        v_gparn = '(SAPLEKPA)WRF02K-GPARN'.
        ASSIGN (v_gparn) TO <fs_gparn>.
        if <fs_gparn> is assigned.
            <fs_gparn> = it_ekpo-zzlifnr.
        endif.
tks

Similar Messages

  • Accessing a field from a structure with out header line

    Hi Guys,
                 I am trying to assign a field from a structure type line of data to another field.
    This structure type line don't have a header line.
    here is the example.
    IT_EKKNU TYPE  MMPUR_EKKNU.
    when I use following statement..
    move IT_EKKNU-kostl to e_cekko-kostl.
    Iam getting error "IT_ENKKNU is not a structure or Internal table with header line.
    How to access the fields in structure IT_EKKNU.
    Thank U for ur time.
    Cheers
    S Kumar

    Here IT_EKKNU is an internal table without Header line.
    You can use a structure for assignment.
    DATA: IT_EKKNU TYPE MMPUR_EKKNU,
               wa_ekknu type    ekknu.
    read table it_ekknu into wa_ekknu........
    move wa_EKKNU-kostl to e_cekko-kostl.
    *modify the code for your conditions*.

  • Adding fields from KOMK structure to screen painter.

    Hello Everyone,
    i have created an Extra tab(like ADDITIONAL DATA B) using BADI, i have added fields from VBAP table, its working fine. But when i add fields from KOMK structure(KOMK-STCEG) only empty field is showing. Do i need to code something in PBO or PAI?
    Thanks & Regards,
    NarsiReddy Cheruku.

    Hello NarsiReddy,
    I assume that you have linked the field KOMK-STCEG using "Get from Dictionary" option from your above screenshot.
    In PBO section, make sure to write the logic to update the value in the field. The logic which you would build, would be based on your requirement. For instance, you can use BELNR to check and its corresponding STCEG could be found in the structure KOMK.
    But if the KOMK structure itself is not filled with any value, then there is some problem with your code. Try to check your BADI and its corresponding structures which would get updated at runtime and use them appropriately.
    Thank you.
    Regards,
    Naresh

  • Fucntion module to reterieve ANFDT field from the structure RM06E

    hi,
    I need Function module to reterieve ANFDT field from the structure RM06E or is there any other table for this field.
    Regards,
    anitha

    Anitha,
    That looks like the date on which the RFQ is created. What you can do is to get this date from EKKO table for a given RFQ, however you need to check the document category and type to A and AN respecitvely.
    Regards,
    Ravi
    Note : Please mark all the helpful answers

  • Selecting desired fields from extract structure to datasource in CRM

    hi guys... coming back to this forum with new problem...
    how are you guys...
    i'm using ds 0CRM_SALES_ACT_1 in CRM to extract activities related data...
    by standard this data source is not supplying some fields which i needed... but when i checked in 'roosfield' table and even in extract structure 'CRMT_BW_DS_ACTIVITY' it is showing the those fields which i required...
    how can i get these fields to data source...
    in LO its like...we can select required field from extract sturcture right???
    is there any procedure do same with CRM data sources...
    thnaking you...
    regards...
    nithin
    Message was edited by: nith l

    Hi,
    If the fields are available in ES but not available in DS , then we can Modify the table ROOSFIELD. But, I think, this is some what rude mothod.
    Before doing this, It is better to Raise a OSS. They may come out with some SP upgradation.
    Search this forum with ROOSFIELD.
    With rgds,
    Anil Kumar Sharma .P

  • Automatically populating Assignment Field from Customer Invoice Reference

    Dear All
    I have a situation. I want when a customer invoice is posted the invoice reference mentioned in the Reference field of the document Header should automatically be populated into assignment field
    Can any one tell me how to get this situation condigured
    Bilal

    Hi,
    You can use substitution function. T.Code GGB2.
    Create substitution under Financial Accounting> Line Item
    Click Create Substitution : System will ask How would you like to substitute
    field BSEG-ZUONR : Choose Field - Field Assignment : Choose the Field Assignment
    Create Click Step  : Prerequisities : Double Click ABAP System Fields > Double Click System Transaction Code   >   Click =   > Click Constant tab > Give T.Code F-43 (for eg) save
    Double Click Substitute Enter BKPF-DBBLG in the blank field and save.
    Now Use T.Code : OBBH
    Enter Company Code; Call Point 0002 Line Item fill substitution and activation level 1 save.
    If you are an End User kindly advise your FICO Consultant to do that.
    Best Regards,
    Sadashivan
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:17 PM
    Edited by: Sadashivan Natarajan on Feb 12, 2009 3:19 PM

  • FORM has to access fields from reference(structure)

    I want to implement a FM for which a template is available ('SAMPLE_PROCESS_00005021'). This FM has a changing parameter 'REFERENCE(c_structure)' without any type.
    How can I fill the individual fields in this structure?

    Hi, we try make code for 0FI_GL_4 so not can found 00005021 in transaction FINF.
    We have ECC 6.0 is necesary other BTE or is necesary activate 00005021 BTE ?
    1) We copy Module Group BFFMSMPL3 to Z_BFFMSMPL3
    2) Copy SAMPLE_PROCESS_00005021 to ZBI_FIGL_00005021
    3) Insert simple Code for Test :
      CASE i_oltpsource.
        WHEN '0FI_GL_4'. "BI Extractor 0FI_GL_4 : Delta Extraction Items.
          FIELD-SYMBOLS:
    4) In R3 go to FIBF and Make ZBI_GL4
    5) in R3 go to FIBF in Modeulo P/S and not found in List BTE : 00005010
    Similar 00005??? BTE in list is :
    00005000 /SAPPCE/RFUMSV50: Impuesto diferido
    00005011 Pago mínimo de impuesto real en retención especial
    00005012 Impuesto diferido ampliado
    Any idea ?
    Is necesary activate BTE 00005010 or is different in ECC 6 ??
    Thank you.

  • Selection-screen (field from .Include structure)

    Hi all,
    I have a selection screen with several select-options. One of the select-option is
    select-options: s_vornr for afvc-vornr.
    Where 'vornr' is a .Include structure field in the table 'afvc'. Now my question is, in selection screen when I click on the box for this particular select-option I dont see the circle(from where we can select the existing input values) at the end of the box.
    Why is it so and how can get that circle option at the end of the box by sticking to the same table and field(afvc-vornr).
    Waiting for your help.
    Thanks

    hi,
    the field do not have nay value range with it.
    you can put the F4 help by using
    At Selection-Screen on Value-request <select-option>. event.
    e.g.
    DATA :  rt_values TYPE STANDARD TABLE OF type_values,
              rs_values TYPE type_values,
              rt_fields TYPE STANDARD TABLE OF type_fields,
              rs_fields TYPE type_fields.
      CLEAR    : rs_values,rs_fields.
      REFRESH  : rt_values,rt_fields.
    Creation of selection list
      rs_fields-tabname     = 'AFVC'.
      rs_fields-fieldname   = 'VORNR
      rs_fields-selectflag  = ' '.      
      APPEND rs_fields TO rt_fields.
       SELECT vornr form AFVC
                     INTO  TABLE t_vornr.
      SORT t_vornr.
      DELETE ADJACENT DUPLICATES FROM t_vornr.
      LOOP AT t_vornr INTO s_vornr.
        rs_values =  s_vornr-vornr.
        APPEND rs_values TO rt_values.
        CLEAR rs_values.
        ENDLOOP.
    FUNCTION 'HELP_VALUES_GET_WITH_TABLE'                   EXPORTING
          fieldname    = 'AFVC'
          tabname      = 'VORNR
          titel        = 'Counting
        IMPORTING
          select_value = <select-opion>
        TABLES
          fields       = rt_fields
          valuetab     = rt_values.
    amit
    Message was edited by: Amit Khare

  • Getting Error while deleting a field from the 'Z' Structure

    Hi All,
    I have created a 'z' structure in which i have 5 fields, now i want to delete one field from the structure, but it is giving me error like Invalid Change.
    Its a structure so i cant activate and adjust as we do for Tables.(se14)
    So pls help me out asap.
    thanks & Regards,
    Dhruv Shah

    Thanks for Quick Reply.
    I have not used this field in any FM/ Report.
    I have tried log off and then log on. but it make no difference.
    Now the Other scenario is that i want to change the datatype of this field to TEXT25.
    But it is also not allowing me to change because currently datatype is TEXT20.
    So now how can i change the length from 20 to 25.
    Regards,
    Dhruv Shah

  • Unable to change account assignment field in PO

    Hi Experts!
    We are using SRM 7.0 with extended classic scenario.
    We are facing an issue with account assignment category field in a PO.Here is our scenario.
    User created a PO with costcenter account assignment field and this PO transffered to backend system i.e R/3.
    When the user again tried to edit the PO in SRM and change the account assignment field from costcenter to Internal order that is not possible because the
    account assignment field is grayed out .Then the user has to create a new PO with Internal order as the old PO didn't allowed him to change.
    Can any one help me in this regard with  some OSS note or any other possible solution and what might be the reason for the same?
    Thanks in advance!
    Regards,
    Kalyani.

    Hello Kalyani,
    Just to understand, Is your PO has Good Receipt or Invoice receipt processed? If so then PO do not allow to change the account assignment as charges are booked already.
    If not i would recommend to check if your BBP_GETSTATUS_2 job is running with proper interval? Sometime old PO's do not get refresh status if BBP_GETSTATUS_2 variant is set based on SAP recommendation (i.e. 7 days or so). In that case please execute manually BBP_GETSTATUS_2 and validate.
    Thank you
    Ritesh

  • Item Field Appearing In Account Assignment Field

    Hello
    I have added the customer specific field at the item level of the shopping cart and added the code in BBP_DOC_CHANGE_BADI. When I activate teh BADI this field also appears in Account assignment fields which shudnt appear and when i deactivate the badi it doesnt appear in account assignment fields. Was there something wrong in the badi implementation. Please help.
    Thanks
    Viky

    Hi
    As I told you earlier, Please refer to the SAP OSS note - 672960.
    <u>Here are the details -></u>
    <b><u>Account assignment fields</u></b>
    For the account assignment fields, use the INCL_EEW_PD_ACC_CSF structure. The account assignment fields are independent of the document type. To display the fields on the account assignment detail screen, you must carry out the following steps:
    1. Use Transaction SE16 to include the user-defined fields that were defined in structure INCL_EEW_PD_ACC_CSF in table BBP_C_ACC_F.
    2. Include the fields and the texts for the account assignment fields from INCL_EEW_PD_ACC_CSF in table BBP_C_ACCFD (according to point 1).
    3. In the IMG activity ' Supplier Relationship Management -> SRM Server -> Cross-Application Basic Settings -> Account Assignment -> Define Account Assignment Categories', you can now add user-defined fields to existing account assignment categories.
    <b>Alternatively, you can use BBP_CUF_BADI_2 to hide all the unnecessary fields from Display in the Shopping cart.</b>
    Hope this will help.
    Regards
    - Atul

  • Assign Component with dynamic structure.

    Hi,
    I like to get a field from a structure which i read from a customizing table. I think with a snippet it is easy to understand:
      FIELD-SYMBOLS:  <fs_value>         TYPE  Any.
    DATA: lv_field type text30,
           lv_structure type  but000,
           lv_Structure_name type text30.
    select single *
      into lv_structure
      from but000.
    lv_field = 'PARTNER'.
    lv_Structure_name = 'LV_STRUCTURE'.
    ASSIGN COMPONENT lv_field OF STRUCTURE lv_Structure_name TO <fs_value>.
    But this doesn't wok, because it seems, that this statement try to get the fieldname from the variable 'lv_Structure_name'.
    If i replace lv_Structure_name with lv_Structure than it works, but this is not what I like.
    Any ideas
    Stefan

    Hi,
    with a little addition of a second fs:
    FIELD-SYMBOLS: <fs_value> TYPE ANY.
    FIELD-SYMBOLS: <fs_struc> TYPE ANY.
    DATA: lv_field TYPE text30,
    lv_structure TYPE but000,
    lv_structure_name TYPE text30.
    SELECT SINGLE *
    INTO lv_structure
    FROM but000.
    lv_field = 'PARTNER'.
    lv_structure_name = 'LV_STRUCTURE'.
    ASSIGN (lv_structure_name) TO <fs_struc>.
    ASSIGN COMPONENT lv_field OF STRUCTURE <fs_struc> TO <fs_value>.
    it will work.
    regards
    Jörg

  • How to populate Assignment field in gl account

    Hello SAP Guru,
    I am doing EBS BRS.
    In Tcode FF68 to generate pay in slip. In this Tcode I am putting 009 in group field.
    When I am posting the check then bank clearing account in refrence no. this group field 009 appears. But I want it to be in Assignment field of bank clearing account.I want to use it for auto clearing. by matching Assignment field from bank statment and assignment field from bank account  i.e clearing accuont.
    Thanks
    Raj

    Hi Rajeev,
    Assign the correct sort key to the GL Account in the master data so that it populates the data to ASSIGNMENT (ZUONR) field.
    Do let me know if it works.
    If there is no sort code defined assigns a value to assignment field then create a new one -- in the Implementation Guide (IMG) under Determine Standard Sorting for Line Items.
    Regards,
    Binay Agarwal

  • Adding Form fields from Custom backend service in SAP_PA

    Hi All,
    I have defined a rule in the form scenario using a form field in my custom backend service. I want this rule to be used in the operation of the SAP_PA backend service.
    In order to use the rule in SAP_PA, the field from the custom backend service(used in the rule definition) has to be assigned to SAP_PA as well. Unfortunately I am not able to assign it.
    I have seen SAP delivered from scenarios (S_HR_PA_US_CHG_PERM_ADDR) where they have assigned fields from custom backend service to SAP_PA, Can you please guide me how to acheive this ??
    Thanks,
    Bharath

    Try directly adding the field in the form scenario in the SAP_PA service.
    Thanks,
    Aravind

  • How to update address fields from a different view?

    Hello Everyone,
    I have created a context node(Model Attribute) of standard address fields using BuilAddress in a view that doesn't have it and successfully displayed them. This is contacts view where the original address of the contact is not available. Now our requirement is to update the standard address if needed from the contacts view itself. How can I do this?  The address fields are available for display only, even if I want to update them using code based on some condtions if not manual entry how can I achieve that?
    Did anyone ever use CRM_BP_UIU_SAVE Badi? I see no posts related to this in forum. Can anyone give me a sample code on what can be done in here and what data of BP is accessible in this BADI and how?
    Thanks,
    Sunil

    Hi Murali,
    Are you sure I can update the address fields using BAPI's from WEBUI? I have tried this already and the BAPI or Function just woudn't call, always return with error message.   I was thinking that BAPI's and Functions for updating just wouldn't work from WEBUI.
    To give you more details, I am in the BP_DATA/AccountContactEF view. I added the context node Address and brought in all the fields from BUILADDRESS structure, it generated the get, set methods for me. I want to update a couple of fields like telephone info, street, city etc. In this view I just redefined Create_Contact method and I tried to update the address using BUPA_ADDRESS_CHANGE for the contact person and it never works. I also tried BUPA_ADDRESS_REMOVE to delete and add the new address using BUPA_ADDRESS_ADD, but that wouldn't work either.
    So that is why I am exploring the option of using BADI, which I found out is very similar. I was able to access pretty much everything of BP data and Contact data. but there also the functions or Bapi's wont work.
    Let me know if you did anything similar. Also as you mentioned the GET_I method, Context node creation  Wizard generated it for me and I have the field editable, its just that when I save it , it wont save and the old values are read back and populated. Meaning if I have  'NY' for region and I change it to 'CA' , after save 'NY' comes back.
    Thanks for you help.
    Sunil

Maybe you are looking for

  • Issues with internet connection.  Logic board?

    I have a 17" MacBook Pro (Late 2008) 2.5 GHz Intel Core 2 Duo, serial ...GV3R9.  More often than not my internet gets disconnected.  The Wi-Fi icon indicates it is ON, but there is no connection at all.  Then if I manually turn OFF the Wi-Fi, it won'

  • Firefox crashes - will not start at all

    If I try and start Firefox all I get is the Mozilla Crash Reporter, if I try and restart Fireofox from the Crash Reporter screen all I get presented with is the Mozila Crash Reporter again. If I try and submit a crash report the Crash Reporter states

  • URL rewriting issue

    Hello all, I am having a url rewriting issue where the first time someone accesses the website with a browser that has cookies enabled my jsp pages will still encode all of the URL's with the jsessionid. Which I believe should not happen unless cooki

  • Why won't my iTunes file open on my PC?

    I have a Toshiba laptop (don't know the model or anything...) and I have the newest version of iTunes. When I click on the shortcut icon on my laptop, iTunes does not open. I have tried restarting it, right clicking on the icon and pressing 'open', a

  • HT1688 Has anyone experienced the 3GS phone exploding when turned off?

    Has anyone experienced the 3GS phone exploding when turned off and not in use after a period of time? Is so, what did you do to get it replaced?