cancel
Showing results for 
Search instead for 
Did you mean: 

Error -5009

former_member606861
Discoverer
0 Kudos
1,243

Hey all,

Working on a process in SAP B1, but when I try to complete job, I get an error. The description says

Line 1: "Item Code: XXX-0412"

Line 2: "-5009 : Item Number is missing; specify an item number."

Little confused as it references the item number in the error, not sure why it is saying it is missing. Really having trouble clearing out this error, still seeing it when I try to complete job, has anyone else encountered this error? If so, how was this issue resolved?

View Entire Topic
Johan_Hakkesteegt
Active Contributor

Hi Ismael,

When using automation in documents in B1, it is good to know that B1 always provides the first line ready, and the working principle is:

  1. add empty line
  2. fill in properties of this line. Ready.
  3. only if more lines are needed, go to step 1

That means that you should only add a line yourself if there are more than 1. In other words, your code should do this:

  1. fill in properties of this line
  2. only if more lines are needed, add a(n empty) line
  3. go to step 1

Regards,

Johan

Amiru
Discoverer
0 Kudos

Kudos to you!

It works on me; I made a conditional first before adding new line.

Regards,
Wahyu Amirulloh