Application Development and Automation 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: 
Read only

Batch Input

Former Member
0 Likes
788

Hello there.

I'm new here. I did my research and I didn't find the content I was looking for so I've created this post.

My problem is:

I have the table (KNA1) on Production environment and it has confidential data which I want to bring to QA and DEV. What I was asked to do was to scrumble the data fields (NAME1 , STCEG and STRAS) and don't change KUNNR.

Take for instance a person A with the NAME1 of a person B, the STCEG field of a person C and STRAS of a person D. Altogether this data won't add up if stolen.

My boss told me to use 'batch inputs' and he said I had to program it. I don't know how to do this. I just started in ABAP.

I have a piece of code that he told me to look at:

perform bdc_field       using 'BDC_OKCODE'

                                '$INT'.

  perform bdc_field       using 'BDC_CURSOR'

                                'SZA1_D0100-SMTP_ADDR'.

  perform bdc_field       using 'ADDR1_DATA-NAME1'

                                gv_name1.

  perform bdc_field       using 'ADDR1_DATA-SORT1'

                                gv_sort1.

  perform bdc_field       using 'ADDR1_DATA-STREET'

                                gv_street.

  perform bdc_field       using 'ADDR1_DATA-REGION'

                                gv_regio.

  perform bdc_field       using 'ADDR1_DATA-COUNTRY'

                                gv_country.

  perform bdc_field       using 'ADDR1_DATA-LANGU'

                                gv_langu.

  perform bdc_field       using 'SZA1_D0100-TITLE_MEDI'

                                gv_title_medi.

  perform bdc_field       using 'ADDR1_DATA-POST_CODE1'

                                gv_post_code1.

  perform bdc_field       using 'ADDR1_DATA-CITY1'

                                gv_city1.

This is just an example. If you guys know how to do this I would be very grateful.

Best regards,

Pedro F. Lopes.

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
665

Use SHDB to create a sample report from the recording of the transaction execution. Also read The Transaction Recorder online documentation.

Regards,

Raymond

Read only

asim_isik
Active Participant
0 Likes
665

Hi Pedro ,

Did you create a record through sm35 for your batch ? without a record its impossible i think for you to know how to write your batch input!! If you created the record write the record and i ll try to help you.