To get Long Description of Material using FM Read_Text.

Hi ,
I am using the below Code which was already posted by someone in this Forum.
I am getting ABAP Dump error with "CALL_FUNCTION_CONFLICT_TYPE" error.
Please guide me here..What needs to be done.
REPORT z_manju1.
TABLES: stxh.
DATA: t_mara like mara OCCURS 0 WITH HEADER LINE.
DATA: lines1 LIKE tline OCCURS 0 WITH HEADER LINE.
DATA: ID1            LIKE     thead-tdid,
      language     LIKE     thead-tdspras,
      NAME1            LIKE     thead-tdname,
      OBJECT1            LIKE     thead-tdobject.
CLEAR: lines1[].
START-OF-SELECTION.
Select * from mara into TABLE t_mara
where SPART eq '06'.
    ID1     = 'GRUN'.
    OBJECT1 = 'MATERIAL'.
loop at t_mara.
NAME1  = t_mara-matnr.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    CLIENT                        = SY-MANDT
    id                            = ID1
    language                      = 'EN'
    name                          = NAME1
    object                        = OBJECT1
  ARCHIVE_HANDLE                = 0
  LOCAL_CAT                     = ' '
IMPORTING
  HEADER                        =
  tables
    lines                         = lines1
EXCEPTIONS
   ID                            = 1
  LANGUAGE                      = 2
  NAME                          = 3
  NOT_FOUND                     = 4
  OBJECT                        = 5
   REFERENCE_CHECK               = 6
  WRONG_ACCESS_TO_ARCHIVE       = 7
   OTHERS                        = 8
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
clear NAME1.
endloop.

Hi
I think the problem can be in the parameter LANGUAGE, the language is variable of 1 char so u don't transfer EN, but E or u should use the variable language (LIKE thead-tdspras).
CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = ID1
*    LANGUAGE = 'EN'
    LANGUAGE = 'E'
    NAME = NAME1
    OBJECT = OBJECT1
or
LANGUAGE = 'E'.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = ID1
*    LANGUAGE = 'EN'
    LANGUAGE = LANGUAGE
    NAME = NAME1
    OBJECT = OBJECT1
Anyway u can use Extended Program Check in order to find out the conflict
Max
Edited by: max bianchi on Nov 5, 2009 4:54 PM

Similar Messages

  • How get Email description attribute text using C#

    I am Using CRM 2015 and Get Email activity attribute values but description
    attribute getting not text only it getting the whole Html.
    i just want to get the text only from description and set to Case Description.
    i am getting this value as
    string emailMessage = email.Attributes["description"].ToString();
    <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META
    HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!-- /* Font Definitions */ @font-face     {font-family:"Cambria
    Math";     panose-1:0 0 0 0 0 0 0 0 0 0;} @font-face     {font-family:Calibri;     panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal     {margin:0in;
        margin-bottom:.0001pt;     font-size:11.0pt;     font-family:"Calibri","sans-serif";} a:link, span.MsoHyperlink     {     color:blue;     text-decoration:underline;}
    a:visited, span.MsoHyperlinkFollowed     {     color:purple;     text-decoration:underline;} span.EmailStyle17     {     font-family:"Calibri","sans-serif";   
     color:windowtext;} .MsoChpDefault     {     font-family:"Calibri","sans-serif";} @page WordSection1     {size:8.5in 11.0in;     margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1
        {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext="edit" spidmax="1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout
    v:ext="edit"> <o:idmap v:ext="edit" data="1" /> </o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div is Test Email 1<o:p></o:p></p><p
    Amatea<o:p></o:p></p></div></body></html>
    Muhammad Sohail

    Hello,
    Take a look here:
    Convert HTML to Plain Text for copying Email Message in CRM 2011 / 2013
    Hope it helps,
    Kind Regards

  • How do I modify the Long Description of video files, so that it shows up when on the iPad or using Home Sharing?

    The content manually inserted into the Description field in iTunes does not display in either the iPad Video App nor when using Home Sharing. I then used MetaX to populate the Long Description field, which one cannot modify directly in iTunes. However, the descriptions still do not show up on either the iPad or when using Home Sharing. The problem is only with TV shows that I ripped from legitimate DVDs; items bought from iTunes seem to work fine. So I opened up a file bought on iTunes with MetaX, and the Long Description field is not even populated leading me to believe Apple had that information stored elsewhere. This is getting so frustrating, and Apple customer care does not seem to care.
    Does anyone have any other suggestions? Where has Apple hidden the long descriptions for TV shows that do show up on Home Sharing? Is there other 3rd party software that may fix the problem? Thanks in advance for any help or suggestions!

    Go to the form login and select the mistake with the arrows and press the Delete button, soon the mistake will be deleted

  • Material group long description

    In the item overview section of a PO we're only able to see the short description of a material group when a search is done. However, when we go to the item detail section of the PO and do a search on the material group field there, we get both the short and long description. Is there a way to get both the long and short descriptions when you do a search on any material group field?

    Hi Eric;
    I'm in version ECC 7 - and both the short/long description are available at the item search by material group in the PO.  What version are you on?  Have you looked through SAP Notes (p.k.a. OSS Notes) for the patch that may resolve this issue? 
    Good luck!
    Edited by: DeLong Gina on Jan 8, 2008 6:48 PM
    Edited by: DeLong Gina on Jan 8, 2008 6:52 PM

  • I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4. so help me

    I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4.

    jatpri1730 wrote:
    I have Iphone 4 and its lock from at&t, but my contract is getting over in short time. And no longer i want to use this service. So after contract gets over its my right to get factory unlock my iphone 4.
    Unfortunately, AT&T does not provide unlocking.
    Stedman

  • I bought a new iMac today. I'm using migration assistant to move all my software, but the time just keeps getting longer. It says connect an Ethernet cable for faster data transfer. I did, but that doesn't seem to help. Any ideas?

    I bought a new iMac today. I'm using migration assistant to move all my software, but the time just keeps getting longer. It says connect an Ethernet cable for faster data transfer. I did, but that doesn't seem to help. Any ideas?

    m1doc,
    Are you migrating from a Mac or a MS Window machine? Either way you probably should be in touch with AppleCare, you have 90 days of free AppleCare telephone support. They can usually help on issues like this. If you don't know the phone number please use http://support.apple.com/kb/HE57 to help find the number in your country.

  • How to get the long description of a lineitem

    Hi,
         I am able to get the description of a line item present in Master Agreement by following code.
    lineItemCollection = agreementBean.getLineItems();
    collectionsize = lineItemCollection.size();
    collectionbean = lineItemCollection.get(0);
    type = collectionbean.getDocumentDescription();
    But I am unable to get the long description of the line item of a Master Agreement.
    Thanks & Regards,
    Swastik

    Hi Alan,
       Thanks for your quick response.
      I want to retrive the  " Long Description" which is present in the Line Item tab of a lineitem.
    can you please help me out regarding this.
    Regards,
    Swastik

  • How do i get a Base code (Material) from a description through BOM?

    Hi,
    the right base code(material) for the production order '68647' is 100827 descriotion 'PIPE BASIC' .
    my requirement is i have an production order and relevent plant, how do i get a basecode ?
    from my previous finding i read that All BOMs will have are associated with the description.
    Targeting this description will always return the right base code for the order.
    but i did not get any idea out of it.
    Please tell me how do i get a Base code (Material) from a description through BOM?
    Thanks in advance.
    Edited by: gulab zehra on Sep 22, 2009 9:17 AM

    Hi Keven,
    I had a look at the example "programmaticbuild2.vi" that you can find at this link:
    in this application the error that eventually comes out from the "BuildTargetBuildSpecification.vi" is written in the error_log.txt through a case structure.
    You can change the code inside the Error case if you want to handle the error in a different way. For example you could connect the error wire to a General Error Handler, that displays a message if an error occurs, or you could light up a led that inform you the error has occurred.
    Best regards,
    Serena M.

  • Get inbound delivery number by using material serial number

    is anyfuction module to get inbound delivery number by using material serial number?
    input---material serial number.
    output--inbound delivery number.

    Hi,
    BAPI_OUTB_DELIVERY_CHANGE
    BAPI_GOODSMVT_CREATE
    it's ok with the Function module
    CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
    EXPORTING
    VBKOK_WA = LWA_VBKOK
    SYNCHRON = ' '
    NO_MESSAGES_UPDATE = ' '
    COMMIT = 'X'
    DELIVERY = P_ITEM-VBELN
    IT_SERNR_UPDATE = LT_SERIALS
    IMPORTING
    EF_ERROR_SERNR_UPDATE = L_SERNR_UPDATE
    <b>Reward points</b>
    Regards

  • Show Material Group Long Description in SRM Product Category ?

    Hi,
    We have entered Short and Long Decriptions for Material Groups in R/3 and we have run the replication too. We want to show the Long Description of the Product Category to the users on the web screens.
    We know there is a setting in SRM to do this but we don't know what it is.
    Please let me know if any one has idea.
    Thanks
    venkatesh p

    Hi Venkatesh,
    You can only transfer one of the two descriptions, if you want Long desc, go to
    SM30
    COMC_HIERARCHY
    NEW ENTRIES
    SELECT TRANSFER 60 CHAR DESC.
    Thanks
    Ravi

  • My text notification light no longer works now since the Lollipop upgrade.  How do I get it back since i use my phone in silent mode most of the time?

    My text notification light no longer works now since the Lollipop upgrade.  How do I get it back since i use my phone in silent mode most of the time?

        We want you to love your software update pitbullmommy71! When did you update your phone? Have you tried going into phone settings and set up your notifications as you would like them? It can take a few days for your phone to normalize after the update, but this may be a bit much. Some apps may no longer be compatible with the new software so you can try running phone in Safe Mode or do a Hard Reset to see if this improves your phone. I've seen where some have completed a Hard Reset after the update and downloaded all same apps, and phone works flawlessly now. However, if you'd like to try Safe Mode first, (which is where all 3rd party apps are disabled), you can certainly try this for 24 hours to see if improves.
    Safe Mode: http://vz.to/1i0XGEW
    Hard Reset: http://vz.to/1GrhWqy
    Thank you,
    VanessaS_VZW
    Follow us on Twitter @VZWSupport

  • Is there a way to get long running SQL Agent jobs information using powershell?

    Hi All,
    Is there a way to get long running SQL Agent jobs information using powershell for multiple SQL servers in the environment?
    Thanks in Advance.
    --Hunt

    I'm running SQL's to fetch the required details and store it in centralized table. 
    foreach ($svr in get-content "f:\PowerSQL\Input\LongRunningJobsPowerSQLServers.txt"){
    $dt = new-object "System.Data.DataTable"
    $cn = new-object System.Data.SqlClient.SqlConnection "server=$svr;database=master;Integrated Security=sspi"
    $cn.Open()
    $sql = $cn.CreateCommand()
    $sql.CommandText = "SELECT
    @@SERVERNAME servername,
    j.job_id AS 'JobId',
    name AS 'JobName',
    max(start_execution_date) AS 'StartTime',
    max(stop_execution_date)AS 'StopTime',
    max(avgruntimeonsucceed),
    max(DATEDIFF(s,start_execution_date,GETDATE())) AS 'CurrentRunTime',
    max(CASE WHEN stop_execution_date IS NULL THEN
    DATEDIFF(ss,start_execution_date,stop_execution_date) ELSE 0 END) 'ActualRunTime',
    max(CASE
    WHEN stop_execution_date IS NULL THEN 'JobRunning'
    WHEN DATEDIFF(ss,start_execution_date,stop_execution_date)
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-History'
    ELSE 'NormalRunning-History'
    END) 'JobRun',
    max(CASE
    WHEN stop_execution_date IS NULL THEN
    CASE WHEN DATEDIFF(ss,start_execution_date,GETDATE())
    > (AvgRunTimeOnSucceed + AvgRunTimeOnSucceed * .05) THEN 'LongRunning-NOW'
    ELSE 'NormalRunning-NOW'
    END
    ELSE 'JobAlreadyDone'
    END)AS 'JobRunning'
    FROM msdb.dbo.sysjobactivity ja
    INNER JOIN msdb.dbo.sysjobs j ON ja.job_id = j.job_id
    INNER JOIN (
    SELECT job_id,
    AVG
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100)
    +
    STDEV
    ((run_duration/10000 * 3600) + ((run_duration%10000)/100*60) + (run_duration%10000)%100) AS 'AvgRuntimeOnSucceed'
    FROM msdb.dbo.sysjobhistory
    WHERE step_id = 0 AND run_status = 1
    GROUP BY job_id) art
    ON j.job_id = art.job_id
    WHERE
    (stop_execution_date IS NULL and start_execution_date is NOT NULL) OR
    (DATEDIFF(ss,start_execution_date,stop_execution_date) > 60 and DATEDIFF(MINUTE,start_execution_date,GETDATE())>60
    AND
    CAST(LEFT(start_execution_date,11) AS DATETIME) = CAST(LEFT(GETDATE(),11) AS DATETIME) )
    --ORDER BY start_execution_date DESC
    group by j.job_id,name
    $rdr = $sql.ExecuteReader()
    $dt.Load($rdr)
    $cn.Close()
    $dt|out-Datatable
    Write-DataTable -ServerInstance 'test124' -Database "PowerSQL" -TableName "TLOG_JobLongRunning" -Data $dt}
    You can refer the below link to refer out-datatable and write-dataTable function.
    http://blogs.technet.com/b/heyscriptingguy/archive/2010/11/01/use-powershell-to-collect-server-data-and-write-to-sql.aspx
    Once we've the table details, I'm sending one consolidated email to automatically.
    --Prashanth

  • My iPad getting very warm when i use it for bit in longer time

    Why my ipad is getting very warm when i use it for bit in longer time, any body has same experience?, Why my ipad is getting very warm when i use it for bit in longer time, any body has same experience?

    The Temperature warning usually appears when the iPad has been set in a place where it gets so hot to the touch that you'd almost burn your hands if you picked it up. The temperature caused by the processor or charging the battery should never reach that level. If you feel your pad is too warm when you are using it Make an appointment at an Apple Store to have your device examined by a technician. Or contact Apple Support.

  • Okay, noe this is stupid, HTC ONE MAX  RECEIVES sENSE 6 UPDATE IN Malasia yet we cannot get it here in the use on verix=zon, last gain and it has been in certification as long as EVERY OTHER HTC  out there!!!!  So verizon i know you will not answer this a

    okay, noW this is stupid, HTC ONE MAX  RECEIVES sENSE 6 UPDATE IN Malasia yet we cannot get it here in the use on verizon, last Again and it has been in certification as long as EVERY OTHER HTC  out there!!!!  So verizon i know you will not answer this anyways cause your just too good to answer it , but WHEN ARE US LOYAL CUSTOMERS GETTING OUT SENSE 6 UPDATE ALREADY???????

    its been 3 months now for certification process. I think we will receive this update for Christmas.Verizon really dont care about htc one max users.  Dont lose hope htc one max users we will see this updates in our phones.  i posted a picture conversation between me and htc. they said its verizon who releases updates for us not them, they delete my post i am sure 100% there is something going on with this update. they just dont tell us.

  • When am creating the material using the transaction MM01 getting the error

    Hi all,
      Could you please help me to solve this issue, When I am creating the material using the transaction MM01, am receiving the error message "Express document "Update was terminated" received from author "XXXXXXXX", I checked the in SM13 found error message showing in Z_LGPLA_BIN_POSTING.
    Regards,
    Muralikrsihna.

    ST22 Error is : SAPSQL_ARRAY_INSERT_DUPREC, below is full error message
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "Z_LGPLA_BIN_POSTING" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    Regards,
    Muralikrishna

Maybe you are looking for

  • Please Help. Problem Assigning Datasource

    I created a test Master data Infoobject abc_xxx and loaded data and then after testing deleted it. Now when I am trying to assign  a new datasource to an existing Infosource from where I loaded data into the test Infoobject , I am getting error messa

  • Embedded Quote in an SQL Statement

    How do you embed a double quote in a java string? I'm doing some processing where I need to generate and execute some SQL, but I need to wrap the string in double quotes, something like: select sysdate "My Column Header" from dual; I've been using th

  • Script to pdf

    i needed a help in converting a script to pdf file , i know there is one standard programto do so. but im unable toget the program name. please let me know if any body knows. thanx.

  • Can't sync properly after 4.5 upgrade

    I have a Pearl 8100 and just upgraded to v 4.5. I didn't know anything about vendor-specific upgrades and just upgraded directly from Blackberry.com. Now when I try to synchronize (I use Outlook 2003 via Desktop Manager v4.2.0.14) it wants to add all

  • Transferring complete iTunes library to new computer

    Hi everyone, I have tried transferring my iTunes library to my new computer using home sharing but some of my artwork and all of my play history is missing. Is there a fix to transfer my COMPLETE library onto my new computer. I am running the latest