Skip to Content
author's profile photo Former Member
Former Member

dialog programming

Hi,

I am working on a module pool program.I have created ascreen 2000 in which there are many fields taken from mvke,mara and marc.If the user wants to change values of some fields in the o/p in this screen,then he can change the values using the dropdown list and when he clicks on the chechbox besides that field,then the changed value should get stored in that particular table from where the field is taken.

I have written my code like this for the checked values to get updated in the database table.

CASE OK_CODE.

WHEN 'EXEC'.

IF DCHAIN_SPEC = c_x.

UPDATE mvke SET vmsta = gs_output1-vmsta.

ENDIF.

where DCHAIN_SPEC is the checkbox name.

When I activate the prg I am getting error as' Field DCHAIN_SPEC is unknown.It is neither defined in one of the tables nor defined by the data statement'.

What would be the reason for this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:03 AM

    Radha,

    I think you have not declare the fields in ABAP editor Globally.

    DATA : DCHAIN_SPEC.

    Don't forget to reward if useful....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:06 AM

    Hi,

    Try the below code

    PARAMETERS  DCHAIN_SPEC AS CHECKBOX USER-COMMAND check.
    
    CASE OK_CODE.
    WHEN 'EXEC'.
    IF DCHAIN_SPEC = c_x.
    UPDATE mvke SET vmsta = gs_output1-vmsta.
    ENDIF.
    

    For more information on radio button and check box go thro the below link

    http://help.sap.com/saphelp_nw70/helpdata/en/3d/c3b23782a9cc68e10000009b38f8cf/content.htm

    Regards,

    Chandru

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:08 AM

    hi

    good

    if you r using any field somewhere in the report than you need to declare than if it is not a field from any sap standard table or a standard include,

    so pls check where how you have delclare DCHAIN_SPEC in your report, if you r using from any include program than check wheather you have use that include program in your report.

    thanks

    mrutyun^

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 01, 2008 at 08:45 AM

    Hi frnd,

    Declare

    DCHAIN_SPEC(1) type c

    using data stament and try executing the same.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.