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

LSMW using RFBIDE00 create customer

Former Member
0 Likes
1,539

Hi All - I would like to use transaction XD01 to create both ship-to's and sold-to's at the same time with one LSMW. I am running into problems however because our ship-to's are not created with Company Code data (BKNB1). I have that structure mapped to my source structure and when I run it gives me the following message:

Session 1 : Special character for 'empty field' is /

Session 1 session name CM_CUSLOAD was opened

<b>Trans. 2 XD01 : CoCde not entered; company code area not being edited

... Data in table BKNB1 cannot be processed</b>

... Last header record ...

... BKN00-STYPE 1

......

......

... BKNB1-SENDE /

....Editing was terminated

where transaction 2 is the ship-to I am trying to create.

I have tried the following rule on all mapped fields for BKNB1:

Source: ZZLOAD_CUST-SPRECACCT (sold-to reconcilliation account)

Rule : Transfer (MOVE)

Code: if not ZZLOAD_CUST-SPRECACCT is initial.

BKNB1-AKONT = ZZLOAD_CUST-SPRECACCT.

endif.

Is it possible to have the LSMW "ignore" structure BKNB1 if the account group is 0002 (ship-to)? I am very new to ABAP.

Thanks,

Bob.

1 ACCEPTED SOLUTION
Read only

naimesh_patel
Active Contributor
0 Likes
1,146

Hello,

if you want to update or create any Comapany code level data (Bank reco account) then you must have to enter Company code in the first screen on XD01.

If you use FD01, there also you have to enter company code.

Regards,

Naimesh

Hi All - I would like to use transaction XD01 to create both ship-to's and sold-to's at the same time with one LSMW. I am running into problems however because our ship-to's are not created with Company Code data (BKNB1). I have that structure mapped to my source structure and when I run it gives me the following message:

Session 1 : Special character for 'empty field' is /

Session 1 session name CM_CUSLOAD was opened

<b>Trans. 2 XD01 : CoCde not entered; company code area not being edited

... Data in table BKNB1 cannot be processed</b>

... Last header record ...

... BKN00-STYPE 1

......

......

... BKNB1-SENDE /

....Editing was terminated

where transaction 2 is the ship-to I am trying to create.

I have tried the following rule on all mapped fields for BKNB1:

Source: ZZLOAD_CUST-SPRECACCT (sold-to reconcilliation account)

Rule : Transfer (MOVE)

Code: if not ZZLOAD_CUST-SPRECACCT is initial.

BKNB1-AKONT = ZZLOAD_CUST-SPRECACCT.

endif.

Is it possible to have the LSMW "ignore" structure BKNB1 if the account group is 0002 (ship-to)? I am very new to ABAP.

Thanks,

Bob.

5 REPLIES 5
Read only

naimesh_patel
Active Contributor
0 Likes
1,147

Hello,

if you want to update or create any Comapany code level data (Bank reco account) then you must have to enter Company code in the first screen on XD01.

If you use FD01, there also you have to enter company code.

Regards,

Naimesh

Read only

0 Likes
1,146

Naimesh, thank you. The problem I have is I need to create the company code data for the sold-to and not for the ship-to. I pass company code for each sold-to record but not for the ship-to records.

Bob.

Read only

Former Member
0 Likes
1,146

hi bob

in lsmw which process ur using to get the list of fields

weather it is recording or something other

if u do recording u have to enter the data into the fields what ever u needed and if u want two times then do the recording two times

ok i am not clear about ur question

can u explain more eloboratly so that i can guide u

Regards

naveen

Read only

0 Likes
1,146

Hi Naveen,

I'm not using a recording. I'm using the standard SAP Batch Input load program RFBIDE00. The object in the LSMW is 0050 and method is 0000.

Thanks,

Bob.

Read only

Former Member
0 Likes
1,146

Hi Bob,

I also had the same requirement to supress BKNB1. Try putting the logic at the very start of BKNB1 structure.

IF <structure>-bukrs IS INITIAL.

EXIT.

ENDIF.