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

Problem with GET instruction

Former Member
0 Likes
1,274

Hi

It's a 'Z' development the problem is when a document is search ( with_item-ctnumber ) inside code it's a GET bkpf, in DEV and QA environment I get right bkpf-monat but not in PRD environment.

For example:

DEV and QA for document 1600003569(03.06.2009) Monat = 03.

PRD for document 1600003538(03.06.2009) Monat = 01.

How can I do for get usin GET BKPF one document info?

Thanks in advance!!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,234

Well, you've given two different document numbers. The fiscal periods for the two documents could be different in the different systems for those document numbers.

Rob

12 REPLIES 12
Read only

Former Member
0 Likes
1,235

Well, you've given two different document numbers. The fiscal periods for the two documents could be different in the different systems for those document numbers.

Rob

Read only

former_member376453
Contributor
0 Likes
1,234

Can you please be more specific. It's not clear to me. I think your problem is MONAT is coming different in two different server. I think, that should be corrected by functional people. There is something called "Fiscal Year variant" where we can declare Jan as MONAT 01 as well as MARCH as 01.

Kuntal

Read only

Former Member
0 Likes
1,234

Thanks both for answering!!!

yes I agree with The fiscal periods could be different systems, but documents were created as PRD case, same month and year.

where could I check "Fiscal Year variant" ( If you are not talking about program variant ).

Guys, I was debugging and I check that exactly on GET BKPF ( is like a loop ) for my document 1600003538 bkpf-monat = 03, but suddenly in GET instruction with another document 1700003522 bkpf-monat = 01

and this is the value printed

document = 1600003538 .

monat = 01 ( must be monat = 03).

I really appreciate your answer, thanks.

Read only

0 Likes
1,234

Goto transaction -> SPRO -> Search with "Fiscal Year Variants" -> There you can find one option "Maintain Fiscal Year Variant" Run this as well as go through the documentation also, If this is happening with all the document, I think then, there might be some configuration change in prod server.

Kuntal

Read only

0 Likes
1,234

>

> Guys, I was debugging and I check that exactly on GET BKPF ( is like a loop ) for my document 1600003538 bkpf-monat = 03, but suddenly in GET instruction with another document 1700003522 bkpf-monat = 01

Well, the different documents are in differnt number ranges.

You can use SE16 to examine both documents and see what the fiscal period is.

Rob

Read only

0 Likes
1,234

Thanks Kuntal, I'm going to check.

Read only

0 Likes
1,234

Thanks Rob, I've already check that, and monat in system is well registered.

Read only

0 Likes
1,234

Rob & Kuntal sorry, but 'Z' program is using a Logical Database (BRM)

Read only

0 Likes
1,234

>

> Rob & Kuntal sorry, but 'Z' program is using a Logical Database (BRM)

I think we understood that

Read only

0 Likes
1,234

uhm.... it's something wrong?

Read only

0 Likes
1,234

No - it's just that GET works with logical databases.

What happens if you put a single company code, fiscal year and document type on the selection screen (leaving the accounting document open)? Should be the same in all systems.

Rob

Read only

0 Likes
1,234

I am not getting any clue, what else may be the reason except configuration.

Kuntal