Posted: Sat Jan 31, 2009 4:43 pm Post subject: Values of the characteristics of a material
Code:
REPORT ZPRUEBA_BAPI .
DATA: u_allocvalueschar TYPE TABLE OF bapi1003_alloc_values_char
WITH HEADER LINE,
u_return_car TYPE TABLE OF bapiret2 WITH HEADER LINE,
u_allocvaluescurrnew TYPE TABLE OF bapi1003_alloc_values_curr
WITH HEADER LINE,
u_allocvaluesnumnew TYPE TABLE OF bapi1003_alloc_values_num
WITH HEADER LINE,
u_return TYPE TABLE OF bapiret2 WITH HEADER LINE,
w_material LIKE bapi1003_key-object.
CLEAR u_allocvalueschar[].
REFRESH u_allocvalueschar[].
CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
EXPORTING
input = '1144430'
IMPORTING
OUTPUT = w_material
* EXCEPTIONS
* LENGTH_ERROR = 1
* OTHERS = 2
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Asigno Valor a la caracteristica de la clase ---------
* Nombre de característica Nueva
u_allocvalueschar-charact
= 'ATT18'."'Accreditation/Company'."v_mname.
* Valor de la característica Nueva
u_allocvalueschar-value_char = 'AR01'."t_material-atwrt.
u_allocvalueschar-value_neutral = 'AR01'."t_material-atwrt.
APPEND u_allocvalueschar.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.