cancel
Showing results for 
Search instead for 
Did you mean: 

what is the object name for purchase request

Former Member
0 Kudos

hi..

i want to know the object name for  purchase request ..

i searched in help  file but i am not able to find the object name for  purchase request for passing the entries through the diapi..

object id i can get from the db  143______ something ...

but i need  object name ...

i have a requirement purchase request  posting  through the diapi  ..

is it possible..

there is no info in help file..

is it possible..

if it is not possible is there any other way..

can anybody share bit of information...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Object name is usefull for exactly nothing (except in B1WS).

You could have get it from the DB - B1if and from then to the DI-API proxy: 1470000113 oPurchaseRequest, ObjectName PurchaseRequest.

i.e.:

var document = (Documents)company.GetBusinessObject((BoObjectTypes)1470000113);

if (null != document)

{

     blah;

}

Regards,

Eric

Former Member
0 Kudos

Any info..

Former Member
0 Kudos

Hi,

I gave you a working solution...

Regards,

Eric

Former Member
0 Kudos

hi.

May i know how can i declare

i declare like below  in vb.net  but showing  some error .error means  first

i am not able to  declare it..

any info plz..

                Dim ogp As SAPbobsCOM.Documents

                ogp = ocompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes)1470000113)

Former Member
0 Kudos

Hi,

Try like the below way

Dim oPurchaseRequest As SAPbobsCOM.Documents = objMain.objCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseRequest)

Regards

Kartheek

edy_simon
Active Contributor
0 Kudos

Hi Srinivas,

Translating Eric's code :

In VB you write 

Dim ogp As SAPbobsCOM.Documents

ogp = ocompany.GetBusinessObject(1470000113)

In VB the type casting for this is implicit if you never turn on 'Option Explicit' in your project.

Regards

Edy

Former Member
0 Kudos

hi,

Edy  and every one 

what is the object name for purchase request..

i am not able to find it...

  1. Dim ogp As SAPbobsCOM.Documents 
  2. ogp = ocompany.GetBusinessObject(1470000113)

i tried this one  object was not found  some error is comming..


Former Member
0 Kudos

Hi Srinivas,

Are u referring to the correct dll's.

Actually purchase request is introduced from 8.82 onwards.

Re-load the dll's and try again.

Regards

Kartheek

Former Member
0 Kudos

Hi Kartheek

Thanks for your reply..

after posting the question i got the same doubt

i checked  it's 9.0  .....

give me second i will check again ..

Former Member
0 Kudos

i think some reference problem i will check it..

Thank for your reply i will reply soonly..

edy_simon
Active Contributor
0 Kudos

Hi Srinivas,

Which SBO Version are you using ?

The Purchase Request DI API object is only available in SBO9.

I have not check 882 PL13 though.

I check in 882 PL12 still not available,

Regards

Edy

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Shri,

Kartheek sir is right use "SAPbobsCOM.BoObjectTypes.oPurchaseRequest".

Thanks And Regards

Pradeep

Former Member
0 Kudos

Thank u every one small question i got confused  ....

Former Member
0 Kudos

Any help plz...

Former Member
0 Kudos

yes i got it...

Some reference problem..

Finally got it i am able to post it..

Thank u karthik and Mr.edy  and eric..

Keep posting............

bye