cancel
Showing results for 
Search instead for 
Did you mean: 

Simple start routine DSO->DSO

Former Member
0 Kudos

Hi experts

This coding in a start routine gives the following error message: E:Field specification missing

What's wrong?

Thanks

 

DELETE SOURCE_PACKAGE WHERE FC_OPBEL = FC_AUGBL

.

Accepted Solutions (0)

Answers (8)

Answers (8)

ravi_chandra3
Active Contributor
0 Kudos

HI PC

You need to write the condition finally , based on the condition the records which is present in the source_package will be deleted .

the syntax should be like this

delete source_package where < condition>.

pls specify the condition in your case.

Hope u got it,

matt
Active Contributor
0 Kudos

Here are the steps to solve your problem.

1. Put the cursor on the word "DELETE".

2. Press F1.

3. Read the syntax.

4. Try to understand how the command

5. If successful at step 4, write the start routine

6. If not successful at step 4, do one of:

   a) Take an ABAP training course

   b) Find an ABAP programmer

former_member182346
Active Contributor
0 Kudos

The problem here I can guess is FC_AUGBL

  

DELETE SOURCE_PACKAGE WHERE FC_OPBEL = FC_AUGBL

What is it, same from source package, what you are trying to do delete the row from source package compairing two fileds of source package ?

If yes, then this will not work, you have to get data into internal table and then use it to do so.

Thank-You.

Regards,

Vinod Bokade

Former Member
0 Kudos

DELETE SOURCE_PACKAGE WHERE FC_OPBEL = FC_AUGBL

in this code,

FC_opbel - what is the exact name of this IOBJ, see at structure in Start Routine.

FC_AUGBL - what is this ?

ex: Delete source_package where /bic/ziobj = 'MAT'.

Regards,

Bhaskar

RamanKorrapati
Active Contributor
0 Kudos

Hi pc,

You need to give proper field name and pass the the right value whne you use condition.

Please check below example.

http://help.sap.com/saphelp_nw70/helpdata/en/43/c3963dfbde4dede10000000a422035/content.htm

Thanks

ravi_chandra3
Active Contributor
0 Kudos

Hi

DELETE SOURCE_PACKAGE WHERE FC_OPBEL = FC_AUGBL

what is the value assigned to the FC_AUGBL,

Pls paste the error screenshot.

Former Member
0 Kudos

Can you please show more of your code from the start routine?

anshu_lilhori
Active Contributor
0 Kudos

Hi,

Please check the field name is proper or not.

This error usually occurs when field name is not specified properly.

Kindly check this thread.

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

Regards,

AL

Former Member
0 Kudos

Thanks Anshu

Solved with the following coding:

 

data

: l_t_data type _ty_t_SC_1.
loop at SOURCE_PACKAGE assigning <source_fields>.
if <source_fields>-FC_OPBEL <> <source_fields>-FC_AUGBL.
append <source_fields> to l_t_data.
endif.
endloop.
SOURCE_PACKAGE
= l_t_data.


Regards

PC

anshu_lilhori
Active Contributor
0 Kudos

This message was moderated.

matt
Active Contributor
0 Kudos

More efficiently:

loop at SOURCE_PACKAGE assigning <source_fields>.
  if <source_fields>-FC_OPBEL EQ <source_fields>-FC_AUGBL.
    DELETE source_package.
  endif.
endloop.

Former Member
0 Kudos

Would like to give points, but the function seems to be inactive at this moment. Can you confirm this on your side? Thanks PC

matt
Active Contributor
0 Kudos

This discussion is not marked as a question, so no points are available. Anyway - we help for the simply joy of giving, not for points.

Former Member
0 Kudos

Okay, thanks for all of your replies. I accidently unflagged the question flag of this "document". Sorry for that...