cancel
Showing results for 
Search instead for 
Did you mean: 

How can I get the Card Code when I'm in PartnerBussines form?

Former Member
0 Kudos

Hellow,

How can I get the Card Code when I'm in PartnerBussines form?

I cauched the Ivent of '134' form and I inserted there

a new button.

My button has to execute another (external)program

and to send the CardCode as a parameter.

I do it with Shell function, But how can I get the Card Code?

Can you help me and send me the code?

I need to do it s.o.s

Thank you very much

Ruthi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ruti

I assume that the user will push your button only after filling valid cardcode in the cardcode field.

First you have to catch the click on the button you've added to the form.

And than before you call your second application - you can read with the UI API the value from the cardcode field with the following code:

Dim oForm As SAPbouiCOM.Form

Dim oItem As SAPbouiCOM.Item

Dim oEditText As SAPbouiCOM.EditText

Dim Str As String

Set oForm = m_App.Forms.Item(FormUID)

Set oItem = oForm.Items.Item("5") 'CardCode field

Set oEditText = oItem.Specific

Str = oEditText.String

Former Member
0 Kudos

Hi Miki,

Where could I put this code, into the ITEM_PRESSED when I click in the button added?

Or into new form that the button added calls?

Marcos.

Former Member
0 Kudos

What I could say is for you to go faster in your development, load the samples in the SDK directories, they are very well done and they work quiet well.

I assure you that your question will be answered as soon as you look into

private void SBO_Application_ItemEvent(string FormUID, ref SAPbouiCOM.ItemEvent pVal, out bool BubbleEvent)

Good luck !