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

Screen Exit for ME51N

HI ,

EVERYBODY

I AM DOING SCREEN EXIT FOR TCODE ME51N, ENHANCEMENT (MEREQ001) EXIT SAPLMEGUI , I HAVE ADDED TWO FIELDS

VALIDITY START DATE AND VALIDITY END DATE.

I HAVE CONFUSION ABOUT HOW TO EXPORT DATA ENTERED IN SUBSCREEN.

PLS HELP ME ..........

THANKS & REGARDS

SANJEEV

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2005 at 05:59 AM

    Hi

    Hi ,

    I guess you have extended structure CI_EBANDB to save the screen values in database.

    You can use the following exits to pass data to and from subscreen -

    EXIT_SAPLMEREQ_001 Export Data to Customer Subscreen for Re

    EXIT_SAPLMEREQ_002 Prepare Customer Subscreen for Requisiti

    EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for

    You have another thread opened for the same subject. Please clsoe one of them.

    Cheers

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 15, 2005 at 10:54 AM

    Hi,

    try with this code in EXIT_SAPLMEREQ_003

    • process after input

    data: ls_mereq_item type mereq_item.

    *get values if PReq item exists

    if not im_req_item is initial.

    *read item data from system

    ls_mereq_item = im_req_item->get_data( ).

    *if customer field changed

    if eban-zflag ne *eban-zflag.

    *fill field with new value

    ls_mereq_item-zflag = eban-zflag.

    *set new item data to system

    call method im_req_item->set_data( ls_mereq_item ).

    *tell the system that there has something changed on the customer tab

    EX_CHANGED = 'X'.

    endif.

    endif.

    cheers,

    Sasi

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 20, 2005 at 06:41 AM

    hi,

    EXIT_SAPLMEREQ_001 -

    Export Data to Customer Subscreen for Requisition (PBO)

    *sample code write in the corresponding include

    DATA: ls_mereq_item TYPE mereq_item.

    • clear eban values if no PReq item

    IF im_req_item IS INITIAL.

    CLEAR: *eban,

    eban.

    ELSE.

    • read item data from system

    ls_mereq_item = im_req_item->get_data( ).

    • fill customer field with old values

    eban-zflag = ls_mereq_item-zflag.

    *eban-zflag = ls_mereq_item-zflag.

    ENDIF.

    • Read and store activity type to chnge the field status

    • of the subscreen

    IF NOT im_req_item IS INITIAL.

    gf_aktyp = im_req_item->GET_ACTIVITY( ).

    endif.

    EXIT_SAPLMEREQ_003 Import Data from Customer Subscreen for Requisition

    data: ls_mereq_item type mereq_item.

    *get values if PReq item exists

    if not im_req_item is initial.

    *read item data from system

    ls_mereq_item = im_req_item->get_data( ).

    *if customer field changed

    if eban-zflag ne *eban-zflag.

    *fill field with new value

    ls_mereq_item-zflag = eban-zflag.

    *set new item data to system

    call method im_req_item->set_data( ls_mereq_item ).

    *tell the system that there has something changed on the customer tab

    EX_CHANGED = 'X'.

    endif.

    endif.

    cheers,

    sasi

    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.