Application Development and Automation 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: 
Read only

changing document Order type(Purchasing) --- BSART

Former Member
0 Likes
1,631

Hi there,

I have a requirement to force an order type based on a PO's class characteristics. For example if user creates a PO(ME21N), within a small sized company Vendor,the the document order type should default to (SME)...I've looked at the badis - ME_BSART_DET,ME_PROCESS_PO .. they dont seem to have a CHANGING parameter..if any one knows please help...

Thaks

Zola

7 REPLIES 7
Read only

Former Member
0 Likes
1,412

Hi ,

U can try this badi ME_PROCESS_PO_CUST.

In the method PROCESS_HEADER, u can set the data for doc type as follows:

DATA: ls_mepoheader TYPE mepoheader.

call method im_header->get_data

importing

im_header = ls_mepoheader.

ls_mepoheader-bsart = <b>'ZZZZ'.</b>

call method im_HEADER->set_data

exporting

im_data = ls_mepoHEADER.

U can give ur order type in ls_mepoheader-bsart.

Hope it solves ur query.

Read only

0 Likes
1,412

Thanks a lot,,will try it....

Read only

0 Likes
1,412

Hi Zola,

Did u try ? is it workin?

Read only

0 Likes
1,412

Yes it did work,,thnks a lot

Read only

0 Likes
1,412

Another question...

Im downloading some text that i get from FM READ_TEXT into spreadsheet(MSWORD)...is it possible to pass the font to the text,for example i want other items on the text to be bold?

Thanks

Zola

Read only

0 Likes
1,412

I am not sure whether it is possible or not.Will check & get back to you.

***REWARD ALL HELPFUL ANSWERS

Read only

Former Member
0 Likes
1,412

Hi guys,

the all famous BAPI_REQUISITION_CREATE has come back to haunt me... for some reason it is not creating service items but i do pass the services table.. i couldnt find an example of how one has filled the services table..please if anyone has done this and is WORKING, send me the code of how you populated the SERVICES table,that'll help a great deal..

please I need someone's working program of how to fill in the services table..the links i had a look at, didnt help either ...

Ta

Zola.