Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bapi-doubt

Former Member
0 Kudos

Hi all,

I am new to bapi.

To upload data for MM41(Retail) i am using

'BAPI_MATERIAL_MAINTAINDATA_RT'.

what value i have to pass to field function and matrial (System generats material).

This is generic article for which i am selecting 10 colours and 12 sizes (char_name and char_value) but in structure CHARACTERISTICVALUE only two fields are there,

how can i populate the data?

If any one is having sample code for generic article pls send.

plz help i will reward the points.

Regards,

sai.

6 REPLIES 6

Former Member
0 Kudos

Hi,

can u just give some more details on this...

Madhavi

venkata_ramisetti
Active Contributor
0 Kudos

Hi,

data: IT_CHARACTERISTICVALUE LIKE BAPIE1AUSPRT OCCURS 0 WITH HEADER LINE.

data: IT_CHARACTERISTICVALUE LIKE BAPIE1AUSPRT OCCURS 0 WITH HEADER LINE.

IT_CHARACTERISTICVALUE-FUNCTION = xx.

IT_CHARACTERISTICVALUE-MATERIAL = XX.

IT_CHARACTERISTICVALUE-CHAR_NAME = name11.

IT_CHARACTERISTICVALUE-CHAR_VALUE = value11.

APPEND IT_CHARACTERISTICVALUE.

IT_CHARACTERISTICVALUE-FUNCTION = xx.

IT_CHARACTERISTICVALUE-MATERIAL = XX.

IT_CHARACTERISTICVALUE-CHAR_NAME = name21.

IT_CHARACTERISTICVALUE-CHAR_VALUE = value21.

APPEND IT_CHARACTERISTICVALUE.

You have to do this for all your 10 colors and 12 sizes.

By the way, you have to populate CHARACTERISTICVALUEX also.

Thanks,

Ramakrishna

Former Member
0 Kudos

Hi ramakrishna,

Do i have to give function = XX? or leave blank?

and material is internally generated.

If i am uploading Internal table by using 'upload'

hoe can system distinguish the items for different headers? can u give more elaborately? I am new to abap and bapi.

plz do need ful.

Regards,

madhukar

Former Member
0 Kudos

Hi all,

If need i will send my flat file.plz help.

Plz send if any one having saple code for generic article creation.

Regards,

Madhukar

Former Member
0 Kudos

Hi all,

If Any body need more info. i will provide.

Plz help, i will reward points.

Regards,

Sai

0 Kudos

Hi,

Please check the function module WIS_PLANB_MATNRBAPI_AND_COMMIT. This is calling function module BAPI_MATERIAL_MAINTAINDATA_RT.

Check also include LWIS_PLANB_SCF10, it has some similar logic

Thanks,

Ramakrishna