Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Preparing Buffers

Hi experts,

What is ment by preparing BUffers.

I have a scnario in CRM like this:

DATA: GV_SOLDTO_GUID_LAST TYPE BAPIBUS1006_HEAD-PARTNERGUID.

P_BP_SOLDTO_GUID TYPE BAPIBUS1006_HEAD-PARTNERGUID

  • check at first if the buffers are prepared this is the case

  • if the gv_soldto_guid_last is not initial and equal the soldto

IF GV_SOLDTO_GUID_LAST IS INITIAL OR

P_BP_SOLDTO_GUID NE GV_SOLDTO_GUID_LAST.

CLEAR LS_RETURN.

MESSAGE E124(CRM_ISALES_BP) INTO LS_RETURN-MESSAGE.

LS_RETURN-ID = SY-MSGID.

LS_RETURN-NUMBER = SY-MSGNO.

LS_RETURN-TYPE = SY-MSGTY.

APPEND LS_RETURN TO MESSAGES.

RETURNCODE = GC_ERR_ABORT_EXECUTION.

EXIT.

ENDIF.

When i debug this the GV_SOLDTO_GUID_LAST is always initial Were as P_BP_SOLDTO_GUID has a value.

So it is printing error message E124.

Can any body suggest me here what is check at first if the buffers are prepared

Thanks in Advance.

Tags:

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question