Assigning structures using types

Hi all,
           There is a structure declared in the program as follows
           TYPES : BEGIN OF TY_CUMM .
       INCLUDE STRUCTURE ZHRCUMWTMAP.
TYPES : END OF TY_CUMM.
but its giving extended check error as "  Within classes and interfaces, you can only use "TYPE" to refer to ABAP Dictionary
types (not "LIKE" or "STRUCTURE")."
So frnds any suggestions.
regards,
sahakla

Hi!
Yes, the coding, you wrote is obsolete. It is working, but a newver version of SAP, this coding will cause problems.
You might try out this style.
TYPES : BEGIN OF TY_CUMM .
  hrcum TYPE ZHRCUMWTMAP.
TYPES : END OF TY_CUMM.
DATA: gt_hrcum TYPE STANDARD TABLE OF TY_CUMM,
     wa_hrcum LIKE LINE OF gt_hrcum.
* access fields in the work area
  wa_hrcum-hrcum-field1 = wa_hrcum-hrcum-field2.
Regards
Tamá

Similar Messages

  • How to use Types structure in smartform layout

    Hi Experts,
    i have a requirement in smartforms. i have a z-structure having some fields. those fields
    should be in the smartform output when we run the print program. This is working fine.
    But i need to add 2 more fields to the existing z-structure. For this, i created a types
    structure in the print program and added the 2 new fields and created internal tables from
    that structure.
    My question is how to pass this types strucure to the smartform layout. i tried to add the
    structure in the tables option of the form interface.
    I get the error "Form Interface - Only table types may be used as the reference type for a table parameter".
    i also tried to declare the types structure. Please advise.

    Hi,
    you create structure in se11 and select structure radio button.
    In the smart form give like as
    Form interface---->tables (tab)
    parameter name ---I_FINAL(inernal table)
    type assignment---LIKE
    Associated type---ZXXXXX (structure name) 
    For declarations of workarea:
    Global definitons----->Global data
    Variable name----WA_FINAL
    Type assignment---TYPE
    Associated type---ZXXXXX
    you declared as of above
    I hope it will helpful you
    Regards
    Bhupal

  • Assign sales order type to Sales Area

    Hello everybody,
    I am trying to assign a sales order type to my sales area, and i have an error : the system tells me that my sales area is not defined. What can i do?
    I already defined my sales area, and i can see it in IMG->Entreprise Structure->Assignment->Sales and Distribution->Set up Sales Area.
    whwn i try to assign my sales order type to the predifined Sales Area it works. what am I supposed to do to be able to assign a document type to my sales area.
    Thank you in advance,
    Silvia

    <b>1.</b> Defining Common Distribution Channels for Master Data
    Use
    The purpose of this activity is to define distribution channels which have common master data..
    Procedure
    Access the activity using one of the following navigation options:
    IMG Menu -> Sales and Distribution -> Master Data -> Define Common Distribution Channels
    Transaction Code: VOR1
    <b>2.</b> Defining Common Divisions for Master DataUse
    The purpose of this activity is to define distribution channels which have common master data..
    Procedure
    Access the activity using one of the following navigation options:
    IMG Menu -> Sales and Distribution -> Master Data -> Define Common Division
    Transaction Code: VOR2
    <b>3.</b> Assign Sales Area To Sales Document Types:
    <b>A.</b><u><i><b> Combine sales organizations / Combine distribution channels / Combine divisions: Ensure to maintain these, else Sales Order creation will give error.</b></i></u><b>B.</b> Assign sales order types permitted for sales areas: Assign only required Sales Order Types to required Sales Area. This will minimize selection of Sales Order Type as per sales area.
    Check the above configuration. It should resolve the error once it is maintained appropriately.
    Regards,
    Rajesh Banka
    Reward points if helpful.

  • Query-Automatic assignment of Record type to Book of Business-Pls help me

    I have a query about Automatic assignment of record in Book of Business.
    Using 5 record types & 50 regions as a part of Book of Business. You can say 50 sub-books.
    I want to assign these 5 record type to particular Book when to create & modify.
    Eg. When I create new account it should be automatically assigned to Book 1 & later I modify this account for reassignment to new user then it should be automatically added to the new user’s book.
    I need to create workflow for this as Assign to book criteria for both when new record saved & when modified record saved.
    I have tried this & its working; however problem is with the creation of two many workflows.
    50 region (Books) x 5 record types * 2 - Create/modify flow = 500 workflows for one country!
    If I am right then I can assign 1 record type with action as create or modify in 1 book only.
    How to reduce these no. of workflows?
    Pls help me out in this regard.
    Regards
    Mangesh

    Mangesh,
    I am sorry to tell you that there is no quick answer to this but i will say that maybe you need to rethink your book structure and their requirements here.
    I have 4 types and 7 regions so you need to create books to allocate all these on create and also modify. Customers have raised concerns with this to Oracle and they are looking into it but they are along way from completing this. Sorry to spoil your day but i would strongly ask you to consider your books structure before you complete this.
    Otherwise if you are using webservices you could assisgn the book when the record is piped into the CRM and then you only need to complete the modify workflows.

  • Assigning structure of data screen for users

    Hi,
    I want to know where is the setting for material master data screens  , how to find out the  which data strucutre is assign , we have three plant  e.g  : 1,2,3 ,  for all those three plant we are using mat. type FERT ,  but sctrucutre of data screen is different for all three plant  I want to find where this assignment is done and how to find it.
    regards,
    zafar

    HI,
    U can check here,
    Option-1:*Select Screen Sequence 21 instead of B2 & copy 21 and rename it( in step 5)[if u do not want Excise Data] Note: Follow the steps for customization of material master 1. Material Number: SPRO -> Logistic - General -> Material Master -> Basic Settings -> Define Output Format of Material Number TCODE: OMSL 2. Define Field Reference: SPRO -> Logistic - General -> Material Master -> Field Selection -> Maintain field Selection For data Screens T CODE: OMS9 3. Define Industry Sector: SPRO -> Logistic - General -> Material Master -> Field Selection -> Define industry Sectors and industry -sector- specific Field Selection T.Code:OMS3 4. Material Type: SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define attribute of material Type T.Code:OMS2 (Select Material Type: ROH for ur raw material( example) copy it and renamed it to UR RAW MATERIAL) 5. Define Screen Sequence: SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Define structure of Data Screens for each Screen Sequence T.Code:OMT3B (Select Screen Sequence: 21, copy it and renamed it to Z with any letter( Like ZA or ZB ) 6. Ordering Screen Sequence: SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Maintain Order of main and Additional Screen T.Code:OMT3R 7. Assign Screen Sequence to Industry Sector: SPRO -> Logistic - General -> Material Master -> Configuring the Material Master -> Assign Screen Sequences to User/Material Type/Truncation/Industry Sector T.Code:OMT3E 8. Assign Field Reference to Plant: SPRO -> Logistic - General ->Material Master -> Field Selection -> Define Plant -Specific Field Selection and Plant -Specific Screen Selection T.Code:OMSA 9. Define Material Group SPRO -> Logistic - General -> Material Master -> Setting for Key Field -> Define Material Group T.Code:OMSF 10. Define Number Range of Material: SPRO -> Logistic - General -> Material Master -> Basic Settings -> Material Type ->Define Number Range for each Material Type T.Code:MMNR 11. Define Purchasing Group: SPRO -> Material Management->Purchasing->Create Purchasing Group T.Code:OME4 Fore more check the Link http://www.sap123.com/showthread.php?t=27 Option-2:Try this 1.Just click the tab ,(Which is u want to delete/Hide )and get the field name 2.Go to T.Code: OMSR and enter that field name and get Selection Group 3.1. Use t.Code: OMS2 and click your material type and in next screen check Field reference ( you have assigned for material type){{ ( example :;For ROH material type the Field reference is ROH) 3.2. use T.code:OMS9,, Double Click your Field Reference and select field selection Group & select round box of Hide
    Regards
    KK
    Edited by: Kishore Kumar Galla on Mar 26, 2010 5:22 PM

  • How do i get data from a structure using join?

    hi,
    what is the actual use of a structure.?
    my problem is :
    KUAGV is an existing STRUCTURE. it has got one fields each which links to MARA, AND VBKD tables. i want to fetch all related information from KUAGV, mara, vbkd . which is the better way : using joins or views or anything else? how do i
    get data from a structure using join?

    structure temporarily holds  any data passed to it dynamically throughout the runtime but doesnot store it permanently. so
    a structure cannot be included in a join.so instead of incuding structure KUAGV's field in a join 
    search the transparent table in which same field are present and  use it in join.
    A structure if created in DDIC(Data Dictionary) is a global DATA STRUCTURE which is used to group related information, for example you would group all the details of your bank account into a structure BANK_ACCOUNT that contains fields like account_Id, account_holder_name etc.
    If you create a structure in your program then it is local to your program. So you use this structure to create data holders of this DATA TYPE to hold data in your program.
    Edited by: suja thomas on Feb 11, 2008 6:24 AM
    Edited by: suja thomas on Feb 11, 2008 6:31 AM

  • Assignment of Step type and CR step for MDG_S

    Hi
    This is in continuaton for thread MDG_S workflow.
    I original issue which is for MDGS when I assigned WS543000005 to CR type and sumitted CR goes no where,
    As as per SWEL it  shows No Reciver Found enen though GET_AGENT table is maintained.
    In another system I found that WS531000044 is assigned ti CR Type Then I tested it and found that CR creates Work Items also upto final processing.
    as per below
    Before CR Submission : CR status is 02: Changes to be executed
    After CR Submission : CR status is 01:To be considered and Approved
    After CR Reviewer approves : CR status is 09: Dependant Data to be processed /Approved
    After Purchase reviewer Finalize processing :CR status is 09: Dependant Data to be processed /Approved
    After Finainace reviewer Finalixe processing :CR status is 09: Dependant Data to be processed /Approved
    Now I can not see CR any where even though CR step 04 and 04 assigned to my user ID
    I have some questions as Description in Define Change Request Steps is not Mataching with description in GET_AGENT desesion table.
    Also it is observed that step 80 is not assigned to WS531000044 in IMG node Define Change Request Steps but it can be seen in GET_AGENT decesion table and step no 06 and 07 does not appears in GET_AGENT decesion table ( In edit mode).
    Can you explain from where assignment of  CR steps to CR type in desion table are taken ino accout ?
    Why description is not matched for steps under IMG and in decesion table?
    Can you explain me releationship between CR step and step type,CR Status and where they \maintained in IMG and how proceeses modelling is diffenent t for determination of Next CR step in case of WS531000044 ?

    Please keep in mind that "hard-wired" workflow templates are just that: hard-wired. This means that a specific workflow template (for example WS53100044) will always have the same number of steps, each step will always have the same type and number, agents will always be assigned in the same way, and those can't be altered by configurations. To understand each workflow template's behavior, you can either open that template in transaction PFTC or SWDD, or alternatively, read the exact behavior in SAP Help documentation. You basically need to google the workflow template number and you should be able to find the description of each template's behavior (by the way, the number you type has an extra zero so if you can't find a match on Google, you will know why ).
    Now, the assignment of CR steps to CR type is done in the workflow template itself and NOT in the decision table. See the first screenshot:
    The step number above "should" correspond to what is in the configuration table (for readability and consistency of documentation purposes). However, if for some reason, it does not, the hard-coded value is the value that will actually be considered. So, in technical terms, the assignment of step numbers in MDGIMG has no influence on how the workflow template will behave. Again, the main purpose is for the corresponding description in the step number configuration table to show on the CR window.
    The other thing is the step type. A step type purpose is mainly to indicate what set of buttons will show at the top of the CR window. The fact that step types are represented by numbers confuse a lot of people with step numbers. I would have personally preferred if step types were a 2-char field so that a clear distinction can be made between step types and step numbers. In any case, buttons on the CR correspond to actions and you can see in MDGIMG that you can assign step types to actions. SAP delivers a pre-defined set of step types and associated actions. Those must NOT be altered because they could break the standard workflow templates. However, you can create your own custom step types and link them with as many actions (standard or custom actions) as you like. But again, you can't assign those custom step types to hard-wired workflow templates. You can only use them in your custom workflow templates or in the rule-based workflow.
    Now, the question is how does the hard-wired workflow know what step type to use. The answer is easy: you can either find that in the SAP Help documentation or in the workflow template definition in transaction SWDD. For the above screenshot, the step type is 2. You can find that if you double-click the task ID TS75707980 (or display it using transaction PFTC) and look in the "Cntainer" tab. In this case, this task will ALWAYS have type 2. Other tasks are assigned different step types or are more dynamic in the sense that they expect the step type to be passed from the main workflow template calling them. For example TS53200002 will always have type 7, TS60808005 will always have type 5, and TS60807954 accepts the step type dynamically. This last one is the one used in the rule-based workflow (hence it has to read the step type configured in the decision table).
    I hope this answers you question. You definitely need some level of workflow design/build knowledge in order to be able to completely understand all of this. Hopefully, this gives you a good starting point.

  • How to assign a pricing type to the pricing procedure ?

    Business Scenario : When the prices change from the time the order is taken to the time the invoice is created, how can setup the system to  handle the changes automatically ? 
    I would like to know How to create a pricing type and How to assign a pricing type to the pricing procedure so that I can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document.
    Thanks for your input in advance.
    Oscar

    Hi !! Oscar,
    1) For pricing type definition you would require the help of a developer.
    2) However, most of the commonly occuring requirements are supplied with  standard SAP.
    You can assign a pricing type to pricing procedure as follows:-
    IMG>S & D >Basic Functions>Pricing>Pricing Control>Define & Assign pricing procedures>Maintain pricing procedure> Here, locate your pricing procedure , in the fourth coloumn using the drop down list, you can assign a pricing type to the pricing procedure.
    Now you can use the 'new pricing document' function in the sales document and 'Update prices' on the condition screens in the Billing document !
    Regards,
    PATHIK
    Message was edited by:
            Pathik Pandya

  • Account assignment for Movt type 101 and 501

    All SAP Gurus,
    We want to do the account assignment for movt types 101, 102, 122, 123, 201, 202, 261, 262 accourding to the movement types.
    We are aware that the Transaction Key is 'GBB'.
    But how to know that which 'General Modification' is used for which movement types.
    (in short where we can find this link between movement types and Transaction Key and 'General Modification')
    Regards,

    To know this first you have to know what does the different general modifications means for GBB:
    AUA: for order settlement
    AUF: for goods receipts for orders (without account assignment)
    and for order settlement if AUA is not maintained
    AUI: Subsequent adjustment of actual price from cost center directly
    to material (with account assignment)
    BSA: for initial entry of stock balances
    INV: for expenditure/income from inventory differences
    VAX: for goods issues for sales orders without
    account assignment object (the account is not a cost element)
    VAY: for goods issues for sales orders with
    account assignment object (account is a cost element)
    VBO: for consumption from stock of material provided to vendor
    VBR: for internal goods issues (for example, for cost center)
    VKA: for sales order account assignment
    (for example, for individual purchase order)
    VKP: for project account assignment (for example, for individual PO)
    VNG: for scrapping/destruction
    VQP: for sample withdrawals without account assignment
    VQY: for sample withdrawals with account assignment
    ZOB: for goods receipts without purchase orders (mvt type 501)
    ZOF: for goods receipts without production orders
    (mvt types 521 and 531)
    You can also define your own account groupings. If you intend to post goods issues for cost centers (mvt type 201) and goods issues for orders (mvt type 261) to separate consumption accounts, you can assign the account grouping ZZZ to movement type 201 and account grouping YYY to movement type 261
    Then go and check OMWN.
    Regards,
    Indranil

  • Account assignment for Movement type 561

    Dear Professionals
    Hi,
    I am new to SD.
    Pls give me ur advice.
    In my environment,
    MB1C:"Enter Other goods Receipt"
    -> Journal: "dr.Inventory/cr.COGS"
    (Movement type: 561)
    VL01N:"Outbound Delivery Create"
    -> Journal: "dr.Inventory/cr.COGS"
    (Movement type:601)
    I guess that the journal for MB1C is incorrect.
    I configured BSX and GBB on OBYC,
    but I have no idea how to change the account assignment per Movement type.
    Use OBWM?
    BR
    Y.Kaneko

    In OBYC for Transaction GBB,  instead of BSX,  maintain BSA, VAX & VAY for each Valuation Class of material and its respective G/L Account.
    For example, if you are trying for a FERT material, then the entries should be
    0001::::BSA:::::7920::::::4XXX30
    0001:::VAX:::::7920:::::::5XXX30
    0001:::VAY:::::7920:::::::6XXX30
    Also check in OMJJ whether you have the settings as follows:-
    MvT::S::Val.Upd:::Qty.upd:::Mvt::Cns:::Val.stng:::Cn:::TEKey:::Acc mod:::Check acct.
    561::::::::::::X::::::::::::::::::::::::::::::::::::::::::::WA01:::::2:::::GBB:::::::BSA::::::::::::::::X
    561::::::::::::X::::::::::::::::::::::::::::::::::::::::::::WA01:::::3:::::PRD::::::::PRA:::::::::
    561::::::::::::X::::::::::::X:::::::::::::::::::::::::::::WA01::::::2::::GBB:::::::BSA:::::::::::::::::X
    561::::::::::::X::::::::::::X:::::::::::::::::::::::::::::WA01::::::3:::::PRD:::::::PRA:::::::::
    Check whether your settings are similar to above.
    thanks
    G. Lakshmipathi

  • Assigned the output type with AR also,It is printing in ENGLISH Only.

    Hi,
    I have written a Z Smartforms and Z print program.
    I have used ZRV56TD00(Copied from standard program RV56TD00),Inside it I have submitted the program(Z print Program) for the shipment number for the transaction code VT03N.
    It is now printing the form in english well and good.
    Now I want the same to work for the ARABIC.
    I had done the arabic translation in SE63 and If I run the program It is printing only in English.
    When the assigned the output type with AR also,It is printing in ENGLISH Only.
    Suitable answers will be rewarded.
    Regards
    Manohar S
    Edited by: Manoj on Jun 17, 2008 4:13 PM
    Edited by: Manoj on Jun 17, 2008 4:14 PM
    Edited by: Manoj on Jun 17, 2008 4:15 PM

    Hi Manoj,
    Goto transaction NACE and check wether you have mentioned the language in Mail title and texts for the particular message type.
    let me know if you require in more detail.
    Regards,
    Sharath

  • How to assign an output type to an Output Device?

    How to assign an output type to an Output Device?
    I'm using SSF_GET_DEVICE_TYPE to get the device type. But for that device type there is no output device configured. How to do that one. I'm getting the output type as PDF1.
    Please help me.

    Hi,
    Guess u need to maintain it in SPAD transaction.
    Cheers
    VJ

  • Assignment of output type to billing document

    I have a billing document for which output type is not assigned.
    Now, whenever I am trying to take the print by VF02, it is asking for output type. and i am giving any output type, the error is coming that " No output type is assigned to the billing document".
    Please suggest, whether we need to assign the output type to the billing document??

    Hi Praveen,
            <b>You should have a output determination procedure along with the billing type assigned to the output type(for eg: RD00,RD01 etc).Apart from this you should have a valid condition record which you create using VV31</b> in which you can control the key combination by maintaining chosen fields in the condition table which pulls the data as per the access sequence and provide you enough combination(for eg: for a certain sales org and Billing type combination etc )
    In the condition record you define the medium,dispatch time and language and not forgetting the output device as well.
    Hope this info has been useful.
    Rgds,
    Aram K.

  • Account assignment to insp type

    Hi, as i understand we need to assign the account assignement in insp lot to create qm order against each insp lot generated. please advise where is that setting in spro and what is the path / t-code to do so?

    Hii Raju,
    Auto generation / manual gen of QM order depends on which order type u use. If u want automatic generation of QM Order then u go for Individual QM order with order type QL02 where one Insp lot assigend to order. For auto generation of QM order, u need to activate Individual QM order in the material master which craetes order based on the material & Insp type. u hv to define ur order in Spro>Qm>Quality inspection --> Maintain Inspection type. for each inspection type.
    To create Individaul QM order, cost center to be specified in P.O else general QM order assigns instead.Moreover u need to define activty type and assign the activity type & cost center  to ur QM work center.

  • Temporary bypass of auto assignment of Inspection type

    I have checked 'auto assignment' in QM master data view.  My goods receipts are generating inspection lots with 01 inspection type.  This is all good.  Is it possible to trick the system not to assign the inspection type in certain cases even though 'auto assignment ' is setup ?  If this is possible I would like to use this to model an ad-hoc first article inspection as required by my client.

    Hello FF,
    I tested your suggestion of creaing multiple plans and tricking system not to assign any inspection plan.  It worked. I have multiple inspection plans for Prelim series( say 501 usage) and one '01' for normal incoming quality inspection.  When a Vendor calls the buyer and cautions that next shipment has some process changes/tool changes/new raw material introdcued etc., some at Client site has to modify the QIR to put in Prelim status.  At the time of GR, system gets confused on which 501 plan to assign and leaves the assignment open in the insp. lot.  Then manually QI inspector has to assign the plan knowing the vendor's caution.  Again, Gagesh question of how change being communicated is not anwered here.  But I may propose an enhancement in the PO screen( a check box may be) that buyer puts in after receiving communication from Vendor.  This flag may run a program to put the QIR status to Prelim status.  Lets see how it goes.  My question is answered.  Thanks to you all for inciteful help.  Points goes to FF for the 'Idea'.

Maybe you are looking for