The SAP Fan Club Forums: /Afs/Bapi - Material - Savedata or Material - Maintain - Dark
The SAP Fan Club Forums: /Afs/Bapi - Material - Savedata or Material - Maintain - Dark
The SAP Fan Club Forums: /Afs/Bapi - Material - Savedata or Material - Maintain - Dark
Skip to content
This website is not affiliated with, sponsored by, or approved by SAP AG.
Search… Search
Advanced search
FAQ
Register
Login
This website is not affiliated with, sponsored by, or approved by SAP AG.
/AFS/BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK
Moderators: Snowy, thx4allthefish, YuriT, Gothmog
Post a reply
Search this topic… Search
1 post • Page 1 of 1
/AFS/BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK
by Guest » Thu Feb 24, 2005 5:00 am
Hi Sapfans,
header-MATERIAL = p_matnr.
header-cost_VIEW = 'X'.
itab_bapi_marc-plant = p_werks.
if p_j_3aslhmod = 'X'.
itab_bapi_marc-HORIZON_METHOD_2 = 'X'.
http://sapfans.com/forums/viewtopic.php?t=168972&start=0&postdays=0&postorder=asc&highlight=&sid=86981e335c256d7a7690866b3ee02fd8 1/4
7/14/2018 The SAP Fan Club Forums • View topic - /AFS/BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK
else.
itab_bapi_marc-HORIZON_METHOD_2 = ' '.
endif.
itab_bapi_marcx-plant = p_werks.
itab_bapi_marcx-HORIZON_METHOD_2 = 'X'.
loop at returnmessage.
Write:/ returnmessage.
endloop.
IF returnmessage-type CA 'AE'.
CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'
IMPORTING
return = returnmessage.
else.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'
IMPORTING
return = returnmessage.
endif.
endloop.
CLEAR : returnmessage.
REFRESH : returnmessage.
FORM func1.
PERFORM GET_MARA.
PERFORM GET_MARC.
marc-j_3aslhmod = p_j_3aslhmod.
modify marc.
PERFORM DEQUEUE_MATERIAL.
http://sapfans.com/forums/viewtopic.php?t=168972&start=0&postdays=0&postorder=asc&highlight=&sid=86981e335c256d7a7690866b3ee02fd8 2/4
7/14/2018 The SAP Fan Club Forums • View topic - /AFS/BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK
P_KZ_NO_WARN = 'X'
KZ_PRF = ' '
KZ_DISPO = ' '
TABLES
AMARA_UEB = AMARA_UEB
AMARC_UEB = AMARC_UEB
EXCEPTIONS
KSTATUS_EMPTY = 1
TKSTATUS_EMPTY = 2
T130M_ERROR = 3
INTERNAL_ERROR = 4
TOO_MANY_ERRORS = 5
UPDATE_ERROR = 6
OTHERS = 7.
COMMIT WORK.
LOOP AT MESSTAB.
MESSAGE ID MESSTAB-MSGID
TYPE MESSTAB-MSGTYP
NUMBER MESSTAB-MSGNR
WITH MESSTAB-MSGV1
MESSTAB-MSGV2
MESSTAB-MSGV3
MESSTAB-MSGV4.
ENDLOOP.
MESSAGE S043(SV).
ENDFORM.
FORM GET_MARA.
So, I'd like to know is: have any problem do this with this function?
Thanks in advanced.
http://sapfans.com/forums/viewtopic.php?t=168972&start=0&postdays=0&postorder=asc&highlight=&sid=86981e335c256d7a7690866b3ee02fd8 3/4
7/14/2018 The SAP Fan Club Forums • View topic - /AFS/BAPI_MATERIAL_SAVEDATA or MATERIAL_MAINTAIN_DARK
Best regards,
Ana
Guest
Top
Post a reply
1 post • Page 1 of 1
Return to ABAP
Who is online
Board index
The team • Delete all board cookies • All times are UTC - 6 hours [ DST ]
http://sapfans.com/forums/viewtopic.php?t=168972&start=0&postdays=0&postorder=asc&highlight=&sid=86981e335c256d7a7690866b3ee02fd8 4/4