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

Error while calling FM CP_BD_DIRECT_INPUT_PLAN

Former Member
0 Likes
1,263

Hi ,

I have a zprogram to create or maintain routing data.

I am getting following errors for maintaining a routing.

--No header alternative for specified object exists

--You cannot edit the task list object with activity type

Any idea what these errors might be for ?
I am unable to find , since i am passing lots of parameters to the FM.

BR.
Giri

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
893

Hi,

Can you put the break point and check the code LCPBDFPK  ( message C\   0001)

if sy-subrc is initial and
      plkod-loekz is initial.
     index_plko_out = index.
   else.
     subrc_out = hier_err-alt.
     if 1 = 2.
       message e001(c\).
     else.
       call function 'CM_F_MESSAGE'
         exporting
           append_same_msg = 'X'
           arbgb           = 'C\'
           msgnr           = '001'
           msgty           = 'E'
         exceptions
           others          = 1.
     endif.
 

Another thing please debug the below FM and routine. ( message : C\ 045 )


FM CP_BD_DIRECT_INPUT_MAPL

perform mapl_update.

Thanks,

Kiran

4 REPLIES 4
Read only

Former Member
0 Likes
893

Hi Giri,

The cause of this message is a change number (rc271_di_imp-aennr), which has an valid-from date different to the valid-from date of the work plan.

By clearing of the change number into structure rc271_di_imp structure appears this message does not occur.

Regards

Saifur

Read only

0 Likes
893

Hi,

I checked that , its not the problem.I already search the forum.Anyway appreciate your help.


https://scn.sap.com/thread/2027073

Br.
Giri

Read only

Former Member
0 Likes
893

Hi

anybody please..its an urgent to be resolved

Thanks in advance

Read only

Former Member
0 Likes
894

Hi,

Can you put the break point and check the code LCPBDFPK  ( message C\   0001)

if sy-subrc is initial and
      plkod-loekz is initial.
     index_plko_out = index.
   else.
     subrc_out = hier_err-alt.
     if 1 = 2.
       message e001(c\).
     else.
       call function 'CM_F_MESSAGE'
         exporting
           append_same_msg = 'X'
           arbgb           = 'C\'
           msgnr           = '001'
           msgty           = 'E'
         exceptions
           others          = 1.
     endif.
 

Another thing please debug the below FM and routine. ( message : C\ 045 )


FM CP_BD_DIRECT_INPUT_MAPL

perform mapl_update.

Thanks,

Kiran