Need to assign a multi datatype struct to a single field in Unicode system

Hi all,
I had posted an earlier question related to this to understand what the issue is. Few responses helped. Then now I have gone thru the conversion rules in Unicode systems related to assigning a structure (with different data types) to a single field and looking for a solution for my case. The current code written in 4.6 says
l_bapiparex-valuepart1 = l_bape_vbap
where
l_bape_vbap is a structure of type bape_vbap and
l_bapiparex of type bapiparex.
So according to the rules, when I do this kind of an assignment in ECC , the first field's length (i.e. VBELN) must be min 240 characters long. Only then this assignment will be error free, am I right ?
Or Is this an inadmissable assignment situation ?
If not then is there any other way how I can achieve the same result by fixing this issue ? I am not able to think of any !! Has any one come across this kind of an issue during upgrade? Please do suggest.
Just for your reference I have pasted the rule details from SAP help..
Conversion in Unicode Programs
The following rules apply in Unicode programs when converting a flat structure to a single field and vice versa:
If a structure is purely character-like, it is processed during conversion like a data object of the type c (Casting). The single field can have any elementary data type.
If the structure is not purely character-like, the single field must have the type c and the structure must begin with a character-like fragment that is at least as long as the single field. The assignment takes place only between this fragment and the single field. The character-like fragment of the structure is treated like a data object of the type c (Casting) in the assignment. If the structure is the target field, the remaining character-like fragments are filled with blanks and all other components with the initial value that corresponds to their type.
No conversion rule is defined for any other cases, so that assignment is not possible.
Note
If a syntax error occurs due to an inadmissible assignment between flat structures and single fields, you can display the fragment view of the corresponding structure when displaying the syntax error in the ABAP Editor by choosing the pushbutton with the information icon.
thanks

Try this way
      call method cl_abap_container_utilities=>fill_container_c
        exporting
          im_value               = l_bape_vbap
        importing
          ex_container           = l_bapiparex-valuepart1
        exceptions
          illegal_parameter_type = 1
          others                 = 2.

Similar Messages

  • Error while adding landed cost G/L account 5207010003      needs DR assignment for dimension 1;  fill in DR-related fields

    Error while adding landed cost G/L account 5207010003      needs DR assignment for dimension 1;  fill in DR-related fields

    Hi Rajesh
    Go to System Initilization =>  General Settings => Cost Accounting => Check the Dimension1 has Block Posting.
    Relase the Block and add the Document it will add.
    With Regards
    Balaji

  • Need to assign follow up activities to Service Quotations

    Hi All,
    can any one give me soluton on
    Need to assign follow up activities to Service Quotations (Create Service Quotation type "ZAV"...transaction code VA21. Need quotes to print out 90 days before service is due again in the following year.
    Thanks in advance.

    Have you already customized Copy Control for your Service Order? If you want to add other transaction types the setting is necessary.
    The customizing path is shown as below.
    SPRO
    -> CRM
      -> Transactions
        -> Basic Settings
          -> Copying Control for Business Transactions
            -> Define Copying Control for Transaction Types
    Regards,
    Web

  • Scrap Sales GL , which type of cost centers need to assign in OKB9

    Dear Seniors,
    G L account : Scrap Sales:
    For this  GL a/c ,  cost  element created  with  Cost element category u201C11u201D (Revenues).
    Now in OKB9   i want to make assignments:
    With each b.area and  cost centers.
    Now my doubt is :
    In OKB9  which type of cost center I need to assign from the below.
    1.Cost center should be with
    Cost  cntr category u201CFu201D  (Production)
    Or
    2.Cost center category u201DVu201D (Sales)
    and another doubts is , in Cost center -control tab: Actual revenues check box,  should i select or not in any case.
    Please clarify my doubt.
    Thanks in Adv

    Hi,
    As scrap sales are revenue to the company, undernoted  things to be noted here :
    1.  The cost element category is V - Sales and the control indicator actual revenues box to be unticked.
         The posting will be statistical for revenue elements.
    2.  The revenue recognition has to be equally done in VKOA for the account assignment of this account.
    3.  You can create a seperate order type for scrap sales and a sales pricing procedure in SD.
    4.  Check whether the scraps are defined to capture Tax Collected at Source, if so, you have to define
         condition types for them too.
    5.  If the material itself is defined as scrap material then in Material master the Profit Center would have
         been assigned and to capture the revenue assign the scrap sales revenue in VKOA.
    Best Regards,
    Sadashivan

  • Need to assign Role into step type mail in recipent type

    Hi Experts,
      I need to assign role to  for step type send mail recipent type . but in drop down there is not any role option to assign . to achive this i created organization  then position and assing job to that position then assigne to role under that job . after all in recipent type i assigned  with job . but when i execute workflow i am getting error . even i dirctally assign role to position and then assigne that position to recipent type. when executing my workflow i am getting error .
    but if a assigne user to position or job my workflow working properlay.  is there any proble to assing Role to Job or position.
    please let me know is there any  extra thing i need to take care when i assign  Role to position or Job .
    point will rewarded for right answer.

    Hello,
    Get the users assigned to the role into a container element in the previous step of 'SendMail' step and use the same as the recipient of the Sendmail step.
    This would be a better and easy option as Arghadip said.
    Hope this will help.
    Regards,
    Samson

  • Why do we need to assign ip for the D channel ISDN-PRI

    Why do we need to assign ip address to the D channel (signaling ) when we configure ISDN-PRI in the example below :
    http://www.cisco.com/univercd/cc/td/doc/product/access/ap/ap_ts3/ap_ts3sw/apswisd.htm
    <quote>
    Step 1:Specify the D channel of the first Primary Rate Interface (PRI):
    AS01(config)# interface Serial 0:23
    AS01(config-if)#
    Step 2: Assign an IP address and subnet mask to the interface:
    AS01(config-if)# ip address 172.16.254.253
    </quote>
    Regards

    You can assing one there, and / or on dialer interfaces. It depends on what you are doing.
    These will be the address used by PPP when it runs on the B-channels.

  • Help!!! Need to assign tet to key combination...

    I need to assign a key combination, i.e., ctrl-alt-r, to a text string, i.e., an IP address + command line parameters.
    Any suggestions on how I might accomplish this?
    Thanks!!

    my favorite solution for this!

  • Need to Assign read-only roles to a user in EP

    Hello,
    I am currently facing a situation wherin I need to assign read-only roles to a user. I need to assign the user admin, system admin and content admin roles to him, but all with read only permissions. Could someone kindly direct me as to how this can be done in EP7.0?
    Thanks in advance and best regards,
    Karthik.

    Hi Karthik,
    first, welcome on SDN!
    About your question:
    Ganesh already showed the way for the PCD. Anyhow, the content admin also can accedd the KM content (if installed); so for KM the settings have to be done, too, i.e. defining only read-permissions for this user on all repositories.
    The same holds for System-Admin - Permissions - Portal Permissions, here under the different sections only read access permissions would have to be set.
    Anyhow, some areas cannot be restricted in this way, for example the User Management. This could be done only via http://yourserver/useradmin and there via ROLE actions (and not per user).
    Still, some areas certainly will stay problematic, so that one maybe would have to strip down the standard roles (create a delta link copy of the content and then remove the problematic areas).
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • If user login in portal we need to assign him, the  perticular system

    Hi all,
    i have the requirement
    if user logins in portal, depending on the user we need to assign him a system( bapi or rfc),
    the user database is maintained in a table in MDM. if an user login in portal it should check in MDM to which region(america, asia.europe....) it belog,s to. according to that we need to assign the system(rfc or bapi). if the user belong's to two regions we need to assign the two links(rfc's or bapi's) regions,
    help me in doing step by step
    Thanks in advance
    Best Regards
    charan

    Hi Charan,
    This is same thread as - Depending on the user we need to assign the system
    Regards,
    Sen

  • Need to assign number range for MMR

    Dear All,
    Need to assign number range for material as MB00001 to MB99999.
    How to do this
    Rgds
    Francis

    Hi,
    USe Tcode MMNR,
    you assign number range to a group
    then youassign material type  to this group
    you have to respect these two rules
    "No overlaps between internal and external number assignement for a given groups"
    "No overlaps between intervals of different groups"
    regards
    regards

  • Assignment Between Structure and Single Field - CL_ABAP_CONTAINER_UTILITIES

    Hi, Need some help on this as I'm not familiar with Java programming.
    Basically in ABAP, we can assign a structure (with complex data type) into a field (please refer to link below).
    Now we need to do similar thing in PI, since PI only support Java then we need to perform similar logic as in CL_ABAP_CONTAINER_UTILITIES =>FILL_CONTAINER_C, but in Java. Understand that there's no concept of structure in Java, in this case PI will receive multiple fields (with different data type) and need to combine them into one field.
    I tried few Java command/method but it doesnt give me the same result as in the ABAP class. Appreciate your help if you know anything about this or some sample program that i can test. thanks!
    SAP Help Reference for ABAP
    [ABAP - Assignment Between Structure and Single Field|http://help.sap.com/saphelp_nw04/helpdata/en/79/c554d3b3dc11d5993800508b6b8b11/frameset.htm]

    Hello Rika,
    In java we have collection framework instead...
    As per your requirement I understood :
    1. You will get a list of different type of objects as input.
    2. You want to club it in one unit....right...
    3. Once done.....I dont know what you will do with that.....I guess pass it somewhere.....
    Now, You can use ArrayList in java to club all your objects in one unit....and send it to any function you want....
    Arraylist list= new ArrayList();
        list.add(new MachineGun());
        list.add(new Gun());
    But there be carefull when you extract data from List....as you need to type cast them accordingly....
    Start trying it...and revert back if you face any problems.....
    While extracting you will have to use something like :
    if(list.get(0).getClass().getSimpleName().equals("MachineGun")){
       //here you can safely cast in the right class
           MachineGun mgun= (MachineGun )list.get(0);   

  • What licence do I need to install server 2012 R2 standard on a single i-7 cpu machine?

    What licence do I need to install server 2012 R2 standard on a single i-7 cpu (multi-core)  machine?
    Is a 2 processors licence OK?
    Thanks.

    Yes, you are all covered.

  • I need to edit sections of several songs into a single track on a CD for a dressage test. Any ideas what software I need to get to achieve this?

    I need to edit sections of several songs into a single track on a CD for a dressage test. Any ideas what software I need to get to achieve this?

    Audacity 1.2.5 is an audio editor in which you can assemble and edit your recordings: it's free. I don't think it would burn CDs - you would have to reimport the finished recording into iTunes and burn from there.
    Amadeus Lite is $24.99 in the Mac App Store and is in my opinion a better product: it can burn your audio CD directly.
    If this is a one-off job you might as well use Audacity: if you are planning on doing this sort of thing at all often you would probably be better off either with Amadeus Lite or Amadeus Pro ($59.99) though this latter may well be over-specified for you as it includes multi-track editing.

  • I'm trying to create a Windows partition using Boot Camp. An error comes up telling me that I need to reformat my current partition(s) into one single partition. However, it's already formatted in the correct format, and is already a single partition.

    As made clear in the title:
    I'm trying to create a Windows partition using Boot Camp. An error comes up telling me that I need to reformat my current partition(s) into one single partition. However, it's already formatted in the correct format, and is already a single partition.
    My computer recently had a kernel panic, which apparently the corruption was in the system and needed to be erased and re-installed. I have a complete back-up using an external hard drive, and I am definitely not willing to do another one of those to reformat a partition that is already singular. I restarted the computer after ejecting my back-up, and after turning off time machine (thinking that boot camp was recognizing it as a secondary partition), however the error still occurs.
    Is there any way to get around this?

    diskutil list:
    /dev/disk0
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        *750.2 GB   disk0
       1:                        EFI                         209.7 MB   disk0s1
       2:                  Apple_HFS Macintosh HD            749.3 GB   disk0s2
       3:                 Apple_Boot Recovery HD             650.0 MB   disk0s3
    /dev/disk1
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:                            Windows7               *2.9 GB     disk1
    diskutil cs list:
    No CoreStorage logical volume groups found
    mount:
    /dev/disk0s2 on / (hfs, local, journaled)
    devfs on /dev (devfs, local, nobrowse)
    map -hosts on /net (autofs, nosuid, automounted, nobrowse)
    map auto_home on /home (autofs, automounted, nobrowse)
    /dev/disk1 on /Volumes/Windows7 (udf, local, nodev, nosuid, read-only, noowners)
    From my very basic knowledge - it still looks as if there is only one partition (not including the windows 7 CD necessary to install the windows partition).

  • TS4062 I am trying to install garage band onto my ipad but it says i need to be in ios7.   but when i go to update my system it says I am upd to date (with ios 5).   What do I do??

    I am trying to install garage band onto my ipad but it says i need to be in ios7.   but when i go to update my system it says I am upd to date (with ios 5).   What do I do??

    Download the current GarageBand version to a computer's iTunes library, go to the device, sign into the iTunes App Store with the Apple ID used to do that, and try downloading it from the list of previous purchases. If that doesn't work and you don't already have a copy of a compatible version, you can't.
    (101177)

Maybe you are looking for

  • Losing Airport/ Get message "connection timed out" when try to re-connect

    This has happened several times over the past few days. First time, trying to re-connect, it didn't see my network name. Then re-entered name, selected/joined, password shows up, but connection times out. Tonight, it saw my name, password showed up,

  • PE10:How can I limit  a transition to just part of the video

    I want to limit the page peel transition to affect the portion of the video screen that depicts a screen showing a slide presentation. The slide show does not show up on the video, so I have to overlay the screen with images from the slide show & wan

  • What is the role of quantity,surcharge in Condition types

    Im new to CIN ,in the pricing procedure JINFAC,the below mentioned conditons types belong to BED how all those differ JEXQ     IN A/R BED JEXP     IN: A/R BED % JEXT     IN A/R BED total same is for AED JEAP     IN A/R AED % JEAQ     IN A/R AED Qty J

  • Query with error "...Invalid Identifier"

    Hi I have a query that returns an error as follows: ORA-00904: "AT_HOURLY_ATTENDANCE_RECORDS"."ABSENCE_TYPE": invalid identifier The code is as follows: SELECT         AT_HOURLY_ATTENDANCE_RECORDS.absence_type AS "value",         AT_HOURLY_ATTENDANCE

  • When will itunes sync with windows 8

    when will ipod classic sync with windows 8