Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

iDoc extension for HRMD_A07 - Error message B1-070

Former Member
0 Kudos

I am trying to create a custom extension to HRMD_A07 to capture some additional data added to infotype 0001. I have gone through the WE31, WE30, WE82, SM30 transactions to create the extension but when I try to test with PFAL I am getting the message B1-070.

Internal error: Program read table idoc_structure, command

data_select_for_block, argument ZHR_SEG

The extractor appears to be trying to fill in the original HRMD_A07 basic type and the HRMD_A07 with the extension.

Any hints?

Thanks, Rob.

6 REPLIES 6

Former Member
0 Kudos

I have managed to circumvent the error by implementing customer exit EXIT_SAPLRHA0_004 to supply the enhancement name in f_idoc_control-cimtyp.

Does anyone know of an easier way?

Rob.

0 Kudos

Did you mention the extension name in WE20?

--

Reddy

0 Kudos

I sure did. I just forgot to mention it in my first post.

Cheers! Rob.

former_member193652
Active Contributor
0 Kudos

Dear Rob,

Although your post's date is old but I would share my knowledge for whom has the same issue.

Last day I had the same problem and could not find any solution on internet so I had to trace the code. Fortunately I managed to fix the problem My colleagues had extended an IDOC by a segment but after that the segment was deleted so I was getting an error in ALE.

Issue comes "DATA_SELECT_FOR_BLOCK" method which is using I_DOC_DATA table that fills in PFAL transaction. thru running PFAL IDOC data reads from table T777D.

Go into and find the related record and clear it

By the way after that I found http://scn.sap.com/thread/3322338 useful

Cheers,

Omid

0 Kudos

Thank you, Omid.

Your post helped me to solve this error.

I tryed to enchance HRMD_A with info-type 0290. And when I used tr. PFAL I got same error.

I debuged PFAL for whole day and found the reason.

The reason was next: I wrote code for exit EXIT_SAPLRHA0_004 but I didnt activated it in CMOD.

It caused to appear an error "Internal error: Program read table idoc_structure, command data_select_for_block, argument Z1P0290".

0 Kudos

In the FM MASTERIDOC_CREATE_<Message type name>, Enhancement has to be implemented.

The IDoc Extension Name has to be passed to the CIMP field of the structure 'F_IDOC_HEADER'. for eg. if your IDoc Extension name is 'Z_IDOC_EXTEND' the code would be :

F_IDOC_HEADER-CIMP = 'Z_IDOC_EXTEND'.