cancel
Showing results for 
Search instead for 
Did you mean: 

Numbering series in PO Draft change by itself when adding after approved

Former Member
0 Kudos

Dear Expert,

I am using SAP B1 9.0 PL 12. I have a problem with numbering series.

In PO Document i create multiple numbering series which is would be set according to vendor code when user input. (one of them set to default)

When user create new PO, i create fms to change numbering series according to vendor code. it's already working well.

And then the user adding the document, and the document automatically become draft because it need approval.

After the PO approved, the same user that create po want to add the document, but numbering series has changed again by itself to default numbering series. Not the same numbering series that set with fms when first input. And this numbering series can be changed (already gray).

Can anyone tell me what cause the problem.

Thanks

Yesaya

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

this is the po numbering setup look like :

Former Member
0 Kudos

Use approval on Purchase quotation and the fms on PO to get the desired result. This may not work as you need because of system behaviour.

Maybe you would need another udf to trigger the fmson doc numbering as if you use copy to, the fms may not trigger on PO.

Thanks,

Joseph

Former Member
0 Kudos

thanks for reply Joseph.

But i change manually the series (without using fms) on the po it's always change back to the default series after approval. Before approval, even until the data entering the odrf table, it's no problem, but after approval it's change to default series.

Do i have to wait for new pl on sap b1 or what?

Former Member
0 Kudos

Hello,

have you posted this issue to SAP yet? If not, do so and see what they have to say..

Thanks,

Joseph

Former Member
0 Kudos

fyi also try to change manually the series when input po, without using the FMS, and the result is still the same, change back to default one before approval.

Is this the bug of sap b1 or what, please anyone could tell me what happened

Former Member
0 Kudos

I also try to simplfy the query to become like this :

SELECT Series FROM NNM1

WHERE ObjectCode = 22

AND SeriesName =

CASE LEFT($[$4.0.0],2)

WHEN 'K1' THEN 'PO-'

WHEN 'K3' THEN 'POS-'

WHEN 'K4' THEN 'POSB-'

WHEN 'K2' THEN 'POT-'

WHEN 'K5' THEN 'POL-'

END+RIGHT(CONVERT(VARCHAR,Indicator),2)

AND Indicator = Year($[$10.0.DATE])

But the result is the same, working well when user input, and change back to default one after approval.

fyi, when the user who don't atttach to approval template input this po, is working well without problem, the problem is when user who attach to approval input the po

Former Member
0 Kudos

Dear Expert

Can anyone give solution for this problem..

Please Help

kothandaraman_nagarajan
Active Contributor
0 Kudos

What is your b1 version and PL?

Former Member
0 Kudos

B1 9.0 PL 12 i already stated above

kothandaraman_nagarajan
Active Contributor
0 Kudos

Sorry. Over looked.

Try this way:- Replace OPOR table with ODRF table in above FMS and then try.

Former Member
0 Kudos

I try your suggestion is not working. when user input the fms is not working using the odrf table.

i try to change the fms like this :

select CASE LEFT(CardCode,2)

WHEN 'K1' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'PO-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[$10.0.DATE]))

WHEN 'K3' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POS-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[$10.0.DATE]))

WHEN 'K4' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POSB-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[$10.0.DATE]))

WHEN 'K2' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POT-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[$10.0.DATE]))

WHEN 'K5' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POL-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[$10.0.DATE]))

END

FROM OCRD WHERE CardCode = $[$4.0.0]

i change opor table with screen code, but this not working also.

When user input is working well, but after aproval, when user about to add the approved document, the numbering change back to default one.

Before approval i select to odrf table and the series and also the docnum is correct, just like when user input.

But after approval it's change back to default one.

Please any expert out there help me...

SeriesSeriesStrDocEntryDocNum
149NULL715950015
kothandaraman_nagarajan
Active Contributor
0 Kudos

Hi,

Please post your FMS here to check.

Thanks & Regards,

Nagarajan

Former Member
0 Kudos

this is my FMS, put in the Series Field, and refresh when delivery date changed :

select CASE LEFT(CardCode,2)

WHEN 'K1' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'PO-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[OPOR.DocDate.DATE]))

WHEN 'K3' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POS-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[OPOR.DocDate.DATE]))

WHEN 'K4' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POSB-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[OPOR.DocDate.DATE]))

WHEN 'K2' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POT-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[OPOR.DocDate.DATE]))

WHEN 'K5' THEN (SELECT Series FROM NNM1 WHERE ObjectCode = 22 AND SeriesName = 'POL-'+RIGHT(CONVERT(VARCHAR,Indicator),2) AND Indicator = Year($[OPOR.DocDate.DATE]))

END

FROM OCRD WHERE CardCode = $[OPOR.CardCode]

Former Member
0 Kudos

Fyi, i also check in OPDF table (po draft) and the series is correct just like user input, but after approval, before adding the document, the series is change back to default series...