cancel
Showing results for 
Search instead for 
Did you mean: 

TaxReceivablePayableRegister

former_member200567
Active Contributor
0 Kudos
56

Hi, everyone,

I am having some problem to get a posting date from the TaxReceivablePayableRegister bo.

Regards,

May T.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member105365
Participant
0 Kudos

Hi May T,

PSM is always the first thing you can check. Check the BO, Node and elements.

You can use a query in the script file or "retreive" to get informtion from a BO.

var query = <business object name>[.<node name>].<query name>;

var selParams = query.CreateSelectionParams();

selParams.Add(query.<element>, "I", "EQ", this.<element>);

queryResult = query.Execute(selParams);

You can find this information in the SAP APPLICATION STUDIO DOCUMENTAION.

If this does not help please give more information on your issue.

Regards,

Thomas

former_member200567
Active Contributor
0 Kudos

First, thanks, Thomas,

Yeap, I normally use that code. I am having some red lines under my code.I can't still get the posting date. Can you please write some code to get it? I tried many ways. Still can't get it.

Special Thanks, Thomas,

Regards,

May T.

former_member105365
Participant
0 Kudos


Hi May T,

Something like this:

If you need parameters:

var query = TaxReivablePayableRegister.QuerybyElements();

var selParams = query.CreateSelectionParams(); //optional

selParams.Add(query.ID, "I", "EQ", this.ID); //optional

queryResult = query.Execute(selParams);

If you dont need parameters:

var query = TaxReivablePayableRegister.QuerybyElements();

queryResult = query.Execute();

Things to check: Check that you have the namespace imported, Check if you can query this object (TaxReivablePayableRegister.)

Regards,

Thomas

former_member200567
Active Contributor
0 Kudos

Hi, Thomas,

This is my problem.

Regards.

May T.

former_member105365
Participant
0 Kudos

Hi May T,

What is the error message in the Error List (View > Error List)?

Regards,

Thomas

former_member105365
Participant
0 Kudos

But from your screenshot it looks like the association (underlined in red) is not PSM enabled.

Regards,

Thomas

former_member200567
Active Contributor
0 Kudos

Hi, Thomas,

The error is

Identifier "ItemProductTaxSplitItem" does not exist.

Regards,

May T

former_member105365
Participant
0 Kudos

Hi May T,

The association  "ItemProductTaxSplitItem" is not PSM enabled.

Regards,

Thomas

former_member200567
Active Contributor
0 Kudos

Hi, Thomas,

So, it means that I can't retrieve that posting date.

Why is it shown on repository explorer? And how can I know it is not PSM enabled?

Regards,

May T.

former_member105365
Participant
0 Kudos

It will always be shown in the Repository Explorer. Usually you can click on the Association in the Repository explorer and it will show you the PSM details.

This time it seems it is not maintained unfortunately.

Regards,

Thomas