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

update fields in fk01 screen from pa40 screen

Hi,

While performing hiring action for a pernr in pa40 screen, corresponding fields in fk01 has to updated(pernr, address...etc) ie. employee vendor has also to be created .

How to link the 2 screens ? plz provide with a solution.

Rgds,

Vani.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 30, 2008 at 06:48 AM

    Vani,

    i think you need not to link two screen.the simple solution is that you need to create one small update program like below:

    data: BEGIN OF i_lfb1 OCCURS 0,
            bukrs like lfb1-bukrs,
            END OF i_lfb1,
            BEGIN OF i_bsik OCCURS 0,
              bukrs like bsik-bukrs,
              END OF i_bsik.
    IF ven = ''.
           SELECT bukrs FROM lfb1 INTO table i_lfb1 WHERE lifnr = itab_lfa1-lifnr.
            SELECT bukrs FROM bsik INTO TABLE i_bsik FOR ALL ENTRIES IN i_lfb1
                                                      WHERE bukrs = i_lfb1-bukrs AND
                                                        lifnr =  itab_lfa1-lifnr.
          IF sy-subrc NE 0.
            SELECT SINGLE * FROM lfa1 INTO lfa1 WHERE lifnr = itab_lfa1-lifnr.
            lfa1-sperr = 'X'.
            lfa1-sperq = '99'.
            UPDATE lfa1 FROM lfa1.
            COMMIT WORK.
          ENDIF.
        ENDIF.

    this i created for block vendor.so you also may do same just first fetch the value from pa40 than sccording this update the

    value in field directly in LFA1 table.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 04, 2008 at 05:05 AM

    Hi Amit,

    I have created a bdc recording for fk01 transacation. Whenever i hire an employee using pa40 this BDC should be triggered in background after pa40 hiring process is done for the employee. How to make the BDC trigger after pa40 action

    Rgds,

    Vani.

    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.