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: 

ZBAPI to display UNIT OF MEASUREMENT & its Text..

Former Member
0 Kudos
906

Hi frnds,

I need to write a ZBAPI to list all Unit of measurement and its text by calling some std Fm in the source code.

Table: T006A

Fields: MSEH3

MSEHL.

plz. provide hints/ sample code.

Regards,

kiran.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
296

cehck the fn modules

MSR20_MD_UNIT_GETLIST

and

MSR1_MD_UNIT_GETLIST

these two fm are remote enabled.

It may be helpful for you.

14 REPLIES 14

0 Kudos
296

Hi Sumit ,

I know how to write zbapi. The thing is that I have use some std FM in source code of ZBAPI may b some std F4 input FMs. I dont who which FM shd b used in my zbapi for UOM.

can u help me in this regard.

Regards,

Kiran.

0 Kudos
296

Check the Fm UNIT_OF_MEASUREMENT_HELP for F4 help it may be useful. Go through the documentation also. I think this is one of the std F4 help for uom.

0 Kudos
296

Hi Prasad,

when I am Executing this FM Iam getting result in pop-up window. I need the result in bapi structure. How to do it. Becoz I am passing this BAPI to portal front end. there they cant use pop-ups.

plz provide some sample code how to get required result

Regards,

kiran.

rajesh_akarte2
Active Participant
0 Kudos
296

Hi ,

You can write the select query code in bapi function module and get the data in one internal table ,by doing this u can get the value in ur bapi.

Regards,

Rajesh Akarte

0 Kudos
296

NO . I should not select directly from table. I shd use some std fm in my zbapi..

Former Member
0 Kudos
296

Hi krishna.

I would like to suggest,

BAPI_MATERIAL_SAVEDATA - You use this method to create new material master data or to change existing material master data

I would like to suggest a reference for the same,

[SDN - Reference for BAPI_MATERIAL_SAVEDATA - Units of Measure code |;

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Former Member
0 Kudos
296

hi,

You can try

UNIT_GET FM in your ZBAPI.

Regards

Sumit Agarwal

Former Member
0 Kudos
296

Hi,

Use the FM: CY_T006A_READ

or

T006A_SINGLE_READ

or

UNIT_OF_MEASUREMENT_TEXT_GET

Regards,

Subramanian

Edited by: Subramanian PL on Jul 18, 2008 11:39 PM

0 Kudos
296

Hi Subrahmaniam,

I need to get all uom & its text i.e., what we get when we press f4. not single result etc.

rajesh_akarte2
Active Participant
0 Kudos
296

Hi,

This is the function module used to read table T006A.

CY_T006A_READ

Regards,

Rajesh Akarte

0 Kudos
296

Hi Rajesh,

I need to get all uom & its text i.e., what we get when we press f4. not single result etc.

Former Member
0 Kudos
297

cehck the fn modules

MSR20_MD_UNIT_GETLIST

and

MSR1_MD_UNIT_GETLIST

these two fm are remote enabled.

It may be helpful for you.

0 Kudos
296

Hi Prasad,

Thanks alot . You hint has solved my problem not only for UOM but also for other fields.

Regards,

Kiran.