Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with calling MB1A

former_member342104
Participant
0 Likes
787

Hi guys,

when i run my bdc in dev it's working finebut in production showing error.

I use call transaction mb1a via a bdc but we could not capture the document number.

when i run my bdc in mode A.

In first screen a waring message document /posting dates in different fiscal year.

then after press enter it goes to next screen and then after three screen it showing

a information messaage is you do not have authorization to choose a profile with class type 300.

then show raise_exception.

code are below

if sy-subrc = 0.

clear lv_mblnr.

loop at messtab.

if messtab-msgid = 'M7' and messtab-msgnr = 060.

lv_mblnr = messtab-msgv1.

endif.

in msgnr itab show 300 300 eror.

endloop.

CALL TRANSACTION 'MB1A' USING i_bdc MESSAGES INTO i_msgtab

MODE 'N'

UPDATE 'S'.

why this is happening?

Please quick response

1 ACCEPTED SOLUTION
Read only

JL23
Active Contributor
0 Likes
704

class type 300 is variant configuration

did you have a material with variant config in your DEV system? Let your functional create one in DEV so that you can test the same case there.

And of course the one who executes the report must have the proper authority. before this is not in place, it is not really worth to speculate about any other solution.

4 REPLIES 4
Read only

JL23
Active Contributor
0 Likes
705

class type 300 is variant configuration

did you have a material with variant config in your DEV system? Let your functional create one in DEV so that you can test the same case there.

And of course the one who executes the report must have the proper authority. before this is not in place, it is not really worth to speculate about any other solution.

Read only

0 Likes
704

thank's for reply.

Can you tell me why we using M7 and 060

Read only

JL23
Active Contributor
0 Likes
704

M7 060 message gives the material document number back.

Read only

Former Member
0 Likes
704

The message CU / 076 - "You do not have authorization to choose a profile with class type 300", comes for configurable materials

The user id you are using to run the BDC on MB1A in production must be missing the authorization object C_TCLA_BKA which is used to assign class types a user is authorized to process. Ask your basis team to assign value for class type (KLART) = 300 in the authorization object and assign it to the user security role, to overcome this error

Here is some information about class type 300:

<< Moderator message - Cut and paste response from removed. Plagiarism is not allowed in SCN >>

Edited by: Rob Burbank on Jan 4, 2012 10:12 AM