‎2005 Oct 12 10:46 PM
I want to use BAPI BAPI_EQUI_CREATE to create equipment. When trying to create an equipment by test-running that BAPI i get no error message, the BAPI returns with a new equipment number and still there is no new equipment with that number. I have the same problem with BAPI_EQUI_CREATE_BY_REFERENCE and there is no big chance to forget any importing parameter with this function module.
Do i have to start those BAPIs in a program and call a certain other BAPI before??
Thanks for your help.
Jens.
‎2005 Oct 13 12:20 PM
Hi,
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WL_EQUNR
IMPORTING
OUTPUT = WL_EQUNR.
WL_FLAGS-CP_MEASPT = C_CHECK.
WL_FLAGS-CP_MPT_TXT = C_CHECK.
CALL FUNCTION 'BAPI_EQUI_CREATE_BY_REFERENCE'
EXPORTING
REFERENCE_NUMBER = WL_EQUNR
COPY_FLAGS = WL_FLAGS
IMPORTING
EQUIPMENT = WL_EQUI-EQUNR
DATA_GENERAL_EXP = WL_GEN
DATA_SPECIFIC_EXP = WL_SPE
RETURN = WL_RETURN
EXCEPTIONS
OTHERS = 1.
IF WL_RETURN(1) = 'E'.
MESSAGE E899(M3) WITH WL_RETURN-MESSAGE(50)
WL_RETURN-MESSAGE+50(50).
fp_return = sy-subrc.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = C_CHECK.
Just try like above
‎2005 Oct 13 9:32 AM
Hello Jens,
<b>BAPI_EQUI_CREATE</b> is waiting for a call to <b>BAPI_TRANSACTION_COMMIT</b>, as any real BAPI should. Otherwise no Update modules triggered in the BAPI will be started.
If you find my answer useful, please don't forget the reward.
Regards,
Juergen
‎2005 Oct 13 4:59 PM
Hello Juergen,
thank you very much for your answer. As you might have noticed i do not have to much experience with bapis yet. It's working now.
‎2005 Oct 13 12:20 PM
Hi,
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = WL_EQUNR
IMPORTING
OUTPUT = WL_EQUNR.
WL_FLAGS-CP_MEASPT = C_CHECK.
WL_FLAGS-CP_MPT_TXT = C_CHECK.
CALL FUNCTION 'BAPI_EQUI_CREATE_BY_REFERENCE'
EXPORTING
REFERENCE_NUMBER = WL_EQUNR
COPY_FLAGS = WL_FLAGS
IMPORTING
EQUIPMENT = WL_EQUI-EQUNR
DATA_GENERAL_EXP = WL_GEN
DATA_SPECIFIC_EXP = WL_SPE
RETURN = WL_RETURN
EXCEPTIONS
OTHERS = 1.
IF WL_RETURN(1) = 'E'.
MESSAGE E899(M3) WITH WL_RETURN-MESSAGE(50)
WL_RETURN-MESSAGE+50(50).
fp_return = sy-subrc.
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = C_CHECK.
Just try like above
‎2005 Oct 13 5:00 PM
Hi Ramesh,
thank you for your example coding. It works very well.
‎2014 Nov 04 11:40 AM