...
Be sure to read any documentation available in the SAP system. Things to look for include: whether you need to include a COMMIT when creating data, required fields or combinations of fields, whether you must call a series of BAPIs / RFCs together (especially common in the ALM functions), non-obvious system values needed for various fields, selection criteria examples, etc.
For BAPIs, look in transaction BAPI to see if it is listed there.
...
Span | ||
---|---|---|
|
...
name | sap_txn_bapi_for_doc.mp4 |
---|---|
height | 150 |
video |
Find documentation in transaction BAPI
If you cannot find it there, you may be able to get to some documentation through transaction SE37. This is generally less helpful (and often not available in English) but it's worth a try.
...
Span | ||
---|---|---|
|
...
name | sap_txn_se37_documentation.mp4 |
---|---|
height | 150 |
video |
Find documentation in transaction SE37
Test in SE37
Especially for very complicated calls, it's a good idea to verify that the BAPI/RFC works the way you think it does by testing it in SE37. Generally speaking, if you can get it to work in SE37, you can get it to work from NLINK.
...
If you set the Activate Trace flag via the NLINK Management Module (NMM) you can generate a file NLINK SapRfcBapi CoNNector2 Trace.Log in the Logs folder which contains details of the outbound call to SAP. This text file is not very user-friendly, but you can find the Import and Table parameters and see exactly what data NLINK is sending.view
...
Span | ||
---|---|---|
|
...
video |
Code Block | ||||
---|---|---|---|---|
| ||||
06-Jan-17 11:04:11 : ABAP Name MATERIAL DataType 0 ('RFCTYPE_CHAR') Direction 1 ('RFC_IMPORT') Decimals 0 ucLength 36 nucLength 18 Default '' Optional '' ('') 06-Jan-17 11:04:11 : Data '100-300' ... 06-Jan-17 11:44:40 : ABAP Name MATNRSELECTION DataType 5 ('RFCTYPE_TABLE') Direction 7 ('RFC_TABLES') Decimals 0 ucLength 78 nucLength 39 Default '' Optional '' ('') 06-Jan-17 11:44:40 : ABAP Name SIGN 06-Jan-17 11:44:40 : DataType 0 ('RFCTYPE_CHAR') 06-Jan-17 11:44:40 : Decimals 0 06-Jan-17 11:44:40 : ucLength 2 06-Jan-17 11:44:40 : ucOffset 0 06-Jan-17 11:44:40 : nucLength 1 06-Jan-17 11:44:40 : nucOffset 0 06-Jan-17 11:44:40 : Data 'I' 06-Jan-17 11:44:40 : ABAP Name OPTION 06-Jan-17 11:44:40 : DataType 0 ('RFCTYPE_CHAR') 06-Jan-17 11:44:40 : Decimals 0 06-Jan-17 11:44:40 : ucLength 4 06-Jan-17 11:44:40 : ucOffset 2 06-Jan-17 11:44:40 : nucLength 2 06-Jan-17 11:44:40 : nucOffset 1 06-Jan-17 11:44:40 : Data 'BT' 06-Jan-17 11:44:40 : ABAP Name MATNR_LOW 06-Jan-17 11:44:40 : DataType 0 ('RFCTYPE_CHAR') 06-Jan-17 11:44:40 : Decimals 0 06-Jan-17 11:44:40 : ucLength 36 06-Jan-17 11:44:40 : ucOffset 6 06-Jan-17 11:44:40 : nucLength 18 06-Jan-17 11:44:40 : nucOffset 3 06-Jan-17 11:44:40 : Data '100-300' 06-Jan-17 11:44:40 : ABAP Name MATNR_HIGH 06-Jan-17 11:44:40 : DataType 0 ('RFCTYPE_CHAR') 06-Jan-17 11:44:40 : Decimals 0 06-Jan-17 11:44:40 : ucLength 36 06-Jan-17 11:44:40 : ucOffset 42 06-Jan-17 11:44:40 : nucLength 18 06-Jan-17 11:44:40 : nucOffset 21 06-Jan-17 11:44:40 : Data '300-300' |
...