cancel
Showing results for 
Search instead for 
Did you mean: 

Attach Files in Goods Receipt with UI - Sap B1

marcio_reis
Discoverer
0 Kudos

I need to create button on the Goods Receipt screen.
When clicking on this button I need to feed the Attachment Matrix with 3 attachments.

But I could not perform the process, I believe there is some other procedure to perform the loading of attachments. If it is not possible to perform the load, it would be possible to feed the AtcEntry field before writing the record so that you can then realign the load to table ATC1.

case SAPbouiCOM.BoEventTypes.et_CLICK:
// Specifies Mouse Up on editable item.

if ( pVal.ItemUID == "999") {
oForm = SBO_Application.Forms.Item(FormUID); oMatrix = (SAPbouiCOM.Matrix)oForm.Items.Item("1320000081").Specific;

((SAPbouiCOM.EditText)oMatrix.Columns.Item("1320000003").Cells.Item(1).Specific).Value = "C:\temp\teste";
((SAPbouiCOM.EditText)oMatrix.Columns.Item("1320000004").Cells.Item(1).Specific).Value = "teste.jpg";
((SAPbouiCOM.EditText)oMatrix.Columns.Item("1320000007").Cells.Item(1).Specific).Value = "01/01/2019";
((SAPbouiCOM.EditText)oMatrix.Columns.Item("256000011").Cells.Item(1).Specific).Value = "imagem camera 01";

Accepted Solutions (0)

Answers (3)

Answers (3)

marcio_reis
Discoverer
0 Kudos

The directory configuration of the files is configured, what I want is to create a button on the goods receipt screen to add various images that are in a certain location, according to the order number, and add them as an attached attachment. on the screen.

Via DI API I was able to do it without problems but not in the same Input operation, then I have a process that goes out and reads the orders and fetching the images and adds it according to the code above.

What I need is to place a Button on the goods receipt screen and when the user clicks on this Button, the system will add the images in the attached tab. I don't know if it is possible to integrate in the screen, A UI and DI, to get the same connection and check the current order (OIGN) and add the attachments vi UI API or DI, in the same operation, like image telacaptura.png

Abdul
Active Contributor
0 Kudos

Instead of this development you can create 3 udf type link and use them to save path of attachments

former_member610331
Contributor
0 Kudos

Hi Marcio Reis,

SAP Business One needs to know details of your attachments folder at first, and then it allows attachments within Goods Receipt and other documents (PO, etc.). It is recommended to try this inbuilt feature prior to considering adding a new button.

How to define attachments folder in SAP Business One:

  1. Within SAP Business One, go to `Modules - Administration - System Initialization - General Settings, Select `Path tab`.
  2. Browse to preferred folder. It is recommended to select a parent folder where you store documents for several stages - sales, purchasing, inventory, etc.
  3. Click Ok (after adding your preferred folder). B1 will ask if you wish to update settings. Select Yes.
  4. Open Goods Receipt, and try adding attachments.

If your question is addressed, kindly mark appropriate response as `answer`.

Best Wishes & Regards,

Sam