Questions tagged [abap-st]

17 questions
7
votes
3 answers

SAP Simple Transformation with arbitrary XML tags

I have XML of unknown structure and I want to apply ST (Simple Transformation) on it to get "somehow" that content out of XML into ABAP structures. For now I have following test report: report ztbu_st_with_copy. data: lf_xml type…
Tom Burger
  • 655
  • 8
  • 15
2
votes
1 answer

Dealing with Null values in JSON deserialization via ST transformation?

Having problems with JSON to ABAP. This is a highly simplified example but tries to capture the main point. Each and every JSON element (with few exceptions) could be present with a real value, present with a null value, or not present at all. In…
2
votes
2 answers

Wrong namespace binding during ST transformation serialization

I have a Simple Transformation to create an XML file like this:
TyRRRax
  • 55
  • 11
2
votes
2 answers

Concatenate values in ST Transformation?

I am writing a serialization through ST and it should put several vars/nodes into one XML tag. Input ABAP itab that should be serialized: ROW_ID ROW VAL INDEX 1 val55 X val32 Y …
Suncatcher
  • 10,355
  • 10
  • 52
  • 90
2
votes
1 answer

CX_ST_MATCH_ELEMENT in ABAP Simple Transformation

I am trying to transform a simple XML to ABAP and use the transaction XSLT_TOOL. The dump I get Errores tiempo ejec. ST_MATCH_FAIL Excepción CX_ST_MATCH_ELEMENT Fecha y hora 31.07.2017 18:55:46 XML:
Ivan Diaz Salas
  • 309
  • 1
  • 9
  • 25
1
vote
1 answer

Deserialization Boolean Values in JSON transformation?

I am deserializing a JSON file, and trying to find the correct way of dealing with boolean values. I began by trying to map the JSON/XML boolean directly to the native ABAP element but that raised an exception. I then tried to check for true and map…
1
vote
2 answers

Remove empty tags in XML using Regex ABAP

I have a problem with generating XML. I used Simple Transformation. Many of tags in my XML are empty. I found an information that I can get rid of those tags using Regex but it doesn't work perfectly. Let me show you how it looks. Without Regex: …
TyRRRax
  • 55
  • 11
1
vote
1 answer

Simple Transformation deserialization: Match Element Error

I have to parse the following XML into an internal table, I get the short dump, after running the program. Please see the program and simple transformation in the following. An exception occurred in simple transformation that is explained in detail…
T.ars
  • 11
  • 1
  • 2
0
votes
2 answers

SAP simple transformations with dynamic namespaces

I receive XML messages from a subsystem that sends changing namespaces. The system seems to increase a counter on a namespace depending on if its needed. I don't know how to handle this in SAP. For example it might send me this:
0
votes
0 answers

Any break statement for tt:loop in ST Transformation?

Any control break statement for tt:loop in XML Simple Transformation in ABAP? I would like to find a specific row while looping data in tt:loop in XML Simple Transformation in ABAP. Ex: Here I want to find every last record based on STUDENT_ID…
0
votes
1 answer

How to skip a self closing tag in a ST function on an SAP system?

So I have this problem handling an XML file in my SAP ABAP-based software, with a Simple Transformation. The file I receive have normally no empty tags like , but can happen sometimes that I receive some self closing tag like…
HackZero
  • 13
  • 2
0
votes
0 answers

Exception cx_st_match_element when deserializing XML?

I'm having trouble getting a simple transformation for XML to work in ABAP. I keep getting the exception cx_st_match_element when I try to execute it on a test XML document inside of a report. I have the following XML that I want to transform into…
Joshua Schroijen
  • 376
  • 6
  • 23
0
votes
1 answer

Ignore closing tag in tt:group standard deserialization

As per documentation: Only one deserialization-relevant case that does not contain a pattern can be specified. This case is called standard deserialization. Now the problem is that, within another tag, the standard deserialization will also match…
Regyn
  • 585
  • 3
  • 17
0
votes
1 answer

Ignore order and missing fields for Self-Written Transformations for JSON

I'm trying to use Self-Written Transformations for JSON instead of the Identity Transformation ID to deserialize JSON from an external server. However, this only works as long as all fields are in the specified order (which isn't guaranteed by JSON…
Regyn
  • 585
  • 3
  • 17
0
votes
0 answers

How to add XML namespace in Abap Simple Transformation

I am getting XML from from internal tables using Simple Transformation. This is the output XML.
1
2