Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8501

Re: Remove assigned BinAllocations after creating pick list

$
0
0

Hi Jeewan,

thank you for the answer .

Here is my small code.

 

SAPbobsCOM.Company oCompany = new SAPbobsCOM.Company();

            SAPbobsCOM.PickLists oPickList =(SAPbobsCOM.PickLists)oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists);

            SAPbobsCOM.PickLists_Lines oLines = new SAPbobsCOM.PickLists_Lines();

            oPickList.GetByKey(846); // 846 is my pick list number

            for (int a = 0; a < oPickList.Lines.Count;a++ )

            {

                oLines.SetCurrentLine(a);

                for(int x=0;x<oPickList.Lines.BinAllocations.Count;x++)

                {

                    // ?? no option to remove the BinAllocation

                }

 

 

              

            }

            if(oPickList.Update()!=0)

            {

                application.MessageBox("Error");

            }

 

I didn`t found the way how to delete / remove the BinAllocation .

Also I`m doing something wrong because the x is returning number 1 and allocated are 2 rows.

Untitled.png

Thank you


Viewing all articles
Browse latest Browse all 8501

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>