Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add the tables parameter #33

Open
eugenefoxx opened this issue Feb 5, 2022 · 1 comment
Open

How to add the tables parameter #33

eugenefoxx opened this issue Feb 5, 2022 · 1 comment

Comments

@eugenefoxx
Copy link

eugenefoxx commented Feb 5, 2022

In changes v0.1.0 says - Table parameter accepts also array of variables. Because this method #17 now work, I'm trying to put an array of variables
params := map[string]interface{}{ "ATHDRLEVELS": []string{"000001000825"} } r, _ := c.Call("Z_IEXT_PRODORDCONF_CREATE_HDR", params)

This parameter is substituted only for the ORDERID field. Could you explain how to use an array of variables in the tables parameter. Thanks.

@chajiuqqq
Copy link

This way can work in my test when you want to add table param:

table_data := map[string]interface{}{
  "BLDAT": time.Date(2024, 2, 14, 0, 0, 0, 0, time.Local),
  "EBELN": "4500000003",                                  
  "EBELP": "00010",                                      
}
params := map[string]interface{}{
  "IV_ZWMSLX": "A",                      
  "IV_BWART":  "101",                    
  "IV_CODE":   "01",                     
  "ITAB":      []interface{}{table_data}, // table param
}
r, e := conn.Call("ZMM_001", params)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants