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

MIGO BADI Method IF_EX_MB_MIGO_BADI~POST_DOCUMENT

Hi Gurus ,

there is the code already which updates a ztable when material doc is posted from migo .

at the statement in code

IMPORT sv_goitem TO zpt_goitem FROM MEMORY ID 'pt_goitem'.

if not zpt_goitem[] is initial.

Problem.

" zpt_goitem[] is always empty ,though The P.O has one line .

Is that problem with Import .

below code in the mehtod .

FIELD-SYMBOLS: <gt_extdata> TYPE migo_badi_example_screen_field.

data: zpt_goitem TYPE TABLE OF goitem ,

zgoserial type bapi2017_gm_serialnumber,

zpt_goserial TYPE TABLE OF bapi2017_gm_serialnumber ,

INDXKEY type INDX-SRTFD ,

WA_INDX type INDX.

if sy-title(12) ne 'Cancellation' and

sy-title(7) ne 'Display'.

WA_INDX-AEDAT = SY-DATUM.

WA_INDX-USERA = SY-UNAME.

INDXKEY = is_mkpf-mblnr.

IMPORT sv_goitem TO zpt_goitem FROM MEMORY ID 'pt_goitem'.

if not zpt_goitem[] is initial.

IMPORT sv_goserial to zpt_goserial from MEMORY ID 'PT_GOSERIAL_POST'.

loop at zpt_goitem into zgoitem....

Thanks

Vinay kolla

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jan 18, 2009 at 11:13 PM

    Hi Vinay...

    when you are playing with Import and Export you are playing with session memory and not ABAP memory... looks the session that Exports data into the memory id is closed and the memory is getting cleared.. so the your internal table is always null (initial)

    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.