Sie sind auf Seite 1von 15

Enhancement Error

1 of 15

https://archive.sap.com/discussions/thread/259179

Get Started

11/1/2016 9:01 AM

Enhancement Error

2 of 15

https://archive.sap.com/discussions/thread/259179

/
/

Archives

Discussions Archive

Business Content and Extractors

Enhancement Error

Hi ,
To Know enhancement concept I Enhanced 2LIS_11_VAHDR Data source . I followed following steps .
1. SE11 ,Gave Extract Structure name ,Append Structure ,Appended
1. Matnr
2. Lgort
Then Activated .
Now when i came to LBWE and try to Click 'Inactive' to activate it is showing errors
<b>In program "SAPLMCEX ", the following syntax error occurred
in the Include "MCEX11TOP " in line 14:
""MC11VA0HDR" must be a flat structure. You cannot use internal tables,"
" strings, references, or structures as components ." </b>
If i try to generate data source by clicking data source name it shows following error
Warning
Extraction structure includes invalid field LGORT with ABAP type
<b>Error
Event with errors Extract in DataSource 2LIS_11_VAHDR</b>
How to solve this , now i am not even able to activate the data source .....?
Thanks & Regards

BI Begineer
November 20, 2006 at 09:54 AM
0 Likes

11/1/2016 9:01 AM

Enhancement Error

3 of 15

https://archive.sap.com/discussions/thread/259179

Arun Varadarajan

replied
November 20, 2006 at 10:00 AM

BI,
I think you might be using referenced fields like
Amount / Quantity etc - these require the units fields
also to be able to be activated...
Arun
P.S check the forums for posts having "Invalid
Extraction Structure" that would give you the answers
you require...
0

Nandu BPC

replied
November 20, 2006 at 10:06 AM

Hi
1) go to se38 and
check the
SAPLMCEX
program what kind
of erors it is giving..
2) did u wrote the
USER exit.. to
populate the
extractstructure
from the table field
hope it helps
regards
AK

11/1/2016 9:01 AM

Enhancement Error

4 of 15

https://archive.sap.com/discussions/thread/259179

AK
0

ramakanth gandepalli

replied
November 20, 2006 at 10:08 AM

Hi Beginner,
1.Before doing enhancements we need to delete the
setup tables.
2.I am having enhancements step by step
document.Send your mail id i will send the document.
My Mail : gandepally@yahoo.co.in
Thanks
Ramakanth
0

Davide Cavallari

replied
November 20, 2006 at 10:26 AM

Hi BI Begineer,
your error message is:
<i>MC11VA0HDR must be a flat structure. You
cannot use internal tables,
strings, references, or <b>structures</b> as
components.
Extraction structure includes invalid field
<b>LGORT</b> with ABAP type [...]</i>
If you look at the object LGORT in the dictionary (use
the transaction code SE11, data type display), you'll
see there's a <b>structure</b> with name LGORT, as
well as a <b>domain</b>. Can you check what is the
<b>data type</b> of the field LGORT you've
appended to the extract structure MC11VA0HDR?

11/1/2016 9:01 AM

Enhancement Error

5 of 15

https://archive.sap.com/discussions/thread/259179

well as a <b>domain</b>. Can you check what is the


<b>data type</b> of the field LGORT you've
appended to the extract structure MC11VA0HDR?
Probably you're not referencing the domain, but the
structure.
Cheers, Davide
0

BI Begineer

replied

November 20, 2006 at 10:39 AM

replied

November 20, 2006 at 10:42 AM

Hi ,
My id : pmani_35@yahoo.co.in
Thanks & Regards
0

BI Begineer

Hi david ,
You are right , for MATNR i used MATNR (Data Elemet is correct ) , But for
LGORT
i used LGORT ( It is a structure ) But i should have used data element name
LGORT_D .
That is the problem . Now how to change that LGORT TO LGORT_D.
Thanks & Regards
0

Davide Cavallari

replied
November 20, 2006 at 10:52 AM

Hello,

11/1/2016 9:01 AM

Enhancement Error

6 of 15

https://archive.sap.com/discussions/thread/259179

November 20, 2006 at 10:52 AM

Hello,
I'm glad you could figure out the problem. Now
you should delete the LGORT entry from the
append structure. Then you can add the
component LGORT again, specifying the
component type LGORT_D.
Regards, Davide
0

BI Begineer

replied

November 20, 2006 at 10:45 AM

Hi ramakanth ,
I gave my id pmani_35@yahoo.co.in ,,,,Kindly send that step by step doc to this
id . I am in the initial stage of extraction .
Thanks in advance
0

ramakanth gandepalli

replied
November 20, 2006 at 10:51 AM

HI Beginner
I have sent the docuements to your mail-id.
Regards
Ramakanth.
Assign points if useful
0

11/1/2016 9:01 AM

Enhancement Error

7 of 15

https://archive.sap.com/discussions/thread/259179

BI Begineer

replied

November 20, 2006 at 11:03 AM

Hi ,
Thanks David .
I just went to 'Append Structure ' , Display - Change , Changed LGORT To
LGORT_D , Activated , Problem Sloved .
Ramakanth ,Points assigned .
0

Davide Cavallari

replied
November 27, 2006 at 12:19 PM

Hello BI Begineer,
the technical problem on the SDN website has
been solved. Could you please close this topic,
so other users can see this problem as
solved?
Thanks, Davide
0

BI Begineer

replied

November 20, 2006 at 11:07 AM

At present some error is showing in point assignment ,will assign when that is
cleared .
One more question .
I need meaning of enhancement ?
LGORT , MATNR are standard fields , i am nowincluding that in standard extract
structure , Can i call this as enhancement or
If i use my Z***** own field in extract structure, then that is called enhanceent
What is true ? .

11/1/2016 9:01 AM

Enhancement Error

8 of 15

https://archive.sap.com/discussions/thread/259179

What is true ? .
Thanks
0

Davide Cavallari

replied
November 20, 2006 at 11:15 AM

As in both cases you need some logic to


populate the added fields, they are both
examples of enhancement. You enhance an
extract structure whenever you add some field
which the extract structure doesn't originally
deliver.
Remeber that it's not enough to add the fields
to the structure. You need also to populate
them. Refer to this <a href="/people
/sap.user72/blog/2005/02/14/logistic-cockpit-when-you-need-more--first-option-enhanceit">weblog</a> by Roberto Negro to learn
more about enhancement.
Davide
0

BI Begineer

replied

November 20, 2006 at 11:29 AM

Hi david ,
So Not only adding User defined Z***** fields to extract structure , Adding SAP
defined standard fields is also enhancements. Both are enhancements Right .
Now What is the steps to be done to get the MATNR , LGORT data into the
extract structure .
Thanks
0

11/1/2016 9:01 AM

Enhancement Error

9 of 15

https://archive.sap.com/discussions/thread/259179

Davide Cavallari

replied
November 20, 2006 at 14:15 PM

First of all you need to create an


<b>enhancement project</b> with the help of
transaction CMOD. You can afterwards assign
the enhancement RSAP0001 (BW Data
Extraction: Customer Function Calls) to that
project.
The enhancement RSAP0001 has 4
<b>components</b>. The first one
(EXIT_SAPLRSAP_001) is involved in your
case. This function exit is called when the
<b>transactional</b> DataSources are
populated by the extractors.
Enter the function exit. You'll find a line of code
which includes ZXRSAU01. You need to
implement this include. Double click on that
line and create the include object. Inside the
case-block, add the following WHEN
instruction:

1. CASE I_DATASOURCE.
2.
WHEN '2LIS_11_VAHDR'.
3.
4. ENDCASE.

After the WHEN instruction, you need to code


in ABAP the business logic for extracting your
fields. Basically, you'll loop at the internal table
<b>C_T_DATA</b>, which contains the
standard fields delivered by the extractor, and
select the needed data from the database
tables involved.
Cheers, Davide
Message was edited by:
Davide Cavallari

11/1/2016 9:01 AM

Enhancement Error

10 of 15

https://archive.sap.com/discussions/thread/259179

Davide Cavallari
0

BI Begineer

replied

November 21, 2006 at 06:01 AM

Hi david , I am posting my sample code , This is my first try ,Tell me where to


change .
<b>My Sample Code</b>
Data source name = 2LIS_11_VAHDR.
Extract Structure Name = MC11VA0HDR.
Field name = MATNR .
Table to be refered = MARA .
So my code .
Tables : Mara .
Data : L_S_VAHDR LIKE MC11VA0HDR
l_counter ,
l_tabix like sy-tabix .
Case I_source .
When '2LIS_11_VAHDR'.
Loop at C_T_DATA Into L_S_VAHDR .
L_TABIX = SY-TABIX .
Select Single * From MARA where MATNR = L_S_VAHDR-MATNR.
If sy-subrc = 0.
L_S_VAHDR-MATNR = MARA-MATNR.
Modify C_T_DATA FROM L_S_VAHDR INDEX L_TABIX.
Endif .
Endloop.
Endcase.
There is already a project ZBWEX1 in CMOD assigned , I went in Change mode .

11/1/2016 9:01 AM

Enhancement Error

11 of 15

https://archive.sap.com/discussions/thread/259179

There is already a project ZBWEX1 in CMOD assigned , I went in Change mode .


Selected EXIT_SAPLRSAP_001
In that Double click INCLUDE ZXRSAU01.
It is showing Code in Display Mode (Blue color ,Cannot edit Generaaly ).
When i give change mode it is showing in Grey ( Cannot edit that )
Then Now how to add this code .
Regards
0

Davide Cavallari

replied
November 21, 2006 at 10:04 AM

The code seems alright. Once you have


implemented the function exit, you can check it
using the transaction RSA3.
<i>There is already a project ZBWEX1 in
CMOD assigned , I went in Change mode .
Selected EXIT_SAPLRSAP_001
In that Double click INCLUDE ZXRSAU01.
It is showing Code in Display Mode (Blue color
,Cannot edit Generaaly ).
When i give change mode it is showing in Grey
( Cannot edit that )
Then Now how to add this code .</i>
Check the authorizations assigned to the user
you're using to edit the code. Does it have a
developer role? You also need to register that
user as a developer in the SAP Service
Marketplace, in the area <i>Keys&Requests ->
SSCR Keys-> Registration</i>. You will likely
need the assistance of a Basis administrator.
Cheers, Davide
PS Please remember to assign points if useful,
thanks
Message was edited by:

11/1/2016 9:01 AM

Enhancement Error

12 of 15

https://archive.sap.com/discussions/thread/259179

thanks
Message was edited by:
Davide Cavallari
0

BI Begineer

replied

November 21, 2006 at 10:15 AM

Hi David ,
Thanks a Lot for you valuable help ..... Your each reply is worth to get points
Definetly i will assign points , This thread will give you max points bcos your
replies are more here , But still now SDN is showing some error in Point
assignments , It happens frequently but clears soon ...... Assigning points is my
duty , I wont forget .
Now i am not doing enhancement in Prod Server ,<b>Since iam new to
enhancement i am trying that in IDES only</b> , IDES dodent need authorization.
If this is succesful i can do that in our Prod sys.
Regards
0

Davide Cavallari

replied
November 21, 2006 at 10:44 AM

<i>Now i am not doing enhancement in Prod


Server ,Since iam new to enhancement i am
trying that in IDES only , IDES dodent need
authorization.</i>
You've always got to implement the
enhancement code in the developement
system and test it there. You can
subsequentely transport the changes in the
quality system and test the extraction
extensively. If these checks are succesfully,
you can afterwards transport the changes in

11/1/2016 9:01 AM

Enhancement Error

13 of 15

https://archive.sap.com/discussions/thread/259179

extensively. If these checks are succesfully,


you can afterwards transport the changes in
production.
Always use the Transport Management
System (TMS), never edit the code in quality
or in production. <b>Remember that
transporting extractor enhancements in
production needs particular care.</b> Refer to
the WebLog by Roberto Negro I posted in a
previous message of this thread.
Cheers, Davide
0

BI Begineer

replied

November 21, 2006 at 10:51 AM

Thanks David
But why cant edit the code in editor in Change mode in Inclue part of Exit . What
is the procedure . Only if i can write code and activate then only my changes in
data source takes effect ....Kindly tell me procedure
Regards
0

Davide Cavallari

replied
November 21, 2006 at 11:04 AM

Are you quite sure you have the right


authorizations? Does the system give any
error/warning message?
When a user has the right permissions and
her/his developer key has been registered in
the system, the procedure is pretty
straightforward. You simply enter the project
components in change mode and that's it.. If
you can't enter in change mode, it's most likely
some user authorization is missing.

11/1/2016 9:01 AM

Enhancement Error

14 of 15

https://archive.sap.com/discussions/thread/259179

you can't enter in change mode, it's most likely


some user authorization is missing.
Davide
0

BI Begineer

replied

November 21, 2006 at 11:41 AM

Hi david ,
My system is ides , Ehen i click Disp -> Change the some Exits code change
from Disp To change mode .
But some change from Blue (Display ) , In between White (Change ) ,
Immediately letters turs to Grey ( We cannot edit that ).
This is the problem now
Thanks
0

Davide Cavallari

replied
November 21, 2006 at 11:53 AM

This is so weird.. I'm sorry but I've got no idea,


I've never faced this before.
Who knows..?
Davide
0

Davide Cavallari

replied
November 21, 2006 at 12:13 PM

P.S. try to post a new topic, specifying a


new subject that describes your issue.
Davide

11/1/2016 9:01 AM

Enhancement Error

15 of 15

https://archive.sap.com/discussions/thread/259179

new subject that describes your issue.


Davide
0

Privacy
Legal Disclosure
Trademark

Terms of Use
Copyright
Sitemap

Newsletter

11/1/2016 9:01 AM

Das könnte Ihnen auch gefallen