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

error while calling BAPI_PO_CREATE1

Former Member
0 Likes
713

dear experts , we are creating PO from SRM using bapi BAPI_PO_CREATE1 ,

I am getting a strange problem for PO type GTX it is throwing error that enter Payment terms but with the same data if PO type is TX them there is no error

I tried to debog the bapi I got this that it is not checking payment terms field in case of TX PO

please help

Edited by: Akash on Sep 27, 2010 8:24 AM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

Hi Akash,

May be for particular Document type you need to pass Payment terms..

so pass value for Payment term and also pass 'X' in POHEADERX for payment terms...

Regards,

Ankit.

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
596

The fields in PO can be made mandatory based on document type in configuration.

So make a condition in your program and pass payment terms for type 'GTX'.

Read only

Former Member
0 Likes
597

Hi Akash,

May be for particular Document type you need to pass Payment terms..

so pass value for Payment term and also pass 'X' in POHEADERX for payment terms...

Regards,

Ankit.

Read only

0 Likes
596

Hi Ankit , I passed the pament term indicator in header . it works

Thankyou