cancel
Showing results for 
Search instead for 
Did you mean: 

MDGC Custom entity STA<->API Mapping problem

lukasz_dippel
Participant
0 Kudos

Dear Experts.

I'm trying to enable a custom uibb / entity under Company Code section.

I performed ( I think ) all the steps described here:

https://www.sap.com/documents/2015/07/d6928e5d-5b7c-0010-82c7-eda71af511fa.html

I can see my new UIBB, however I can not map data to staging area, because my custom entity doesn’t show up In [MY_HANDLER]~MAP_DATA_2STA.

While debugging I only see BP_CENTRAL and BP_HEADER entities, however the sample code ( from tutorial above) suggests there should also be "my" entity :

(…)
CASE iv_entity.

WHEN 'ZSECRET_N'.
(…)

I've also noticed that the GT_ECC_EXTERN_DB is empty and I assume it should be not ( there is a loop at GT_ECC_EXTERN_DB in a sample code).

Any clues?

Thank You.

Accepted Solutions (0)

Answers (2)

Answers (2)

shidhartha
Explorer
0 Kudos

Hi Lukasz,

Were you able to find anything on this ? I am facing the same issue for my development.

Please share in case you were able to find any solution.

Thanks

Sid

udsh
Explorer
0 Kudos

Hi Lukasz or Shidhartha,

I am facing similar issue with my custom entity for BP-C. Could you please share your findings ?

Regards,

Udaya Shankar K R

udsh
Explorer
0 Kudos

Hi Lukasz / Shidhartha,

I am facing the exact same issue which you have described. Could you please help me with some pointers?

Regards

Udaya Shankar K R

chahoud
Active Participant
0 Kudos

Hi Lukasz,

Please make sure that MDG relationship (inklusiv cardinality) is correctly maintained.

Second step can be to check the passed data between Feeder class and Derive BAdI.

Additional to that please check ST22 for any dumps and if these are all fine, then issue might be with SMT mapping.

BR Sam

lukasz_dippel
Participant
0 Kudos

Hello.


I tried with 1:1 relationship (association) as well as 1:0...1 .

Anyway comparing to (for example ) automatic payments I see no relationship to company code and it works fine. My case should be simmilar.

But when I put the Wire analogous to BS_CU_COMPANY_CODE_AUTO_PAY (with no realationship) I get the following error:

500 internal server error . Data objects in Unicode programs can not be converted.

I chcek it in st22:

it happens here:

1 method IF_GENIL_CONT_SIMPLE_OBJECT~GET_ATTRIBUTES .

2 field-symbols: <ATTR> type any.

3

4 assign ME->DATA_REF->ATTRIBUTE_REF->* to <ATTR>.

5 if SY-SUBRC = 0.

>>>>> ES_ATTRIBUTES = <ATTR>.

in that moment ES_ATTRIBUTES has a structure of my new ENTITY, but in <ATTR> there is still Company Code data (looks like from previous execution) with different field structure.

any Idea?

Thank You.