2006 Apr 05 2:49 PM
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.
2006 Apr 05 2:53 PM
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
2006 Apr 05 2:53 PM
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
2006 Apr 05 3:00 PM
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.
2006 Apr 05 2:59 PM
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
2006 Apr 05 3:04 PM
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.
2006 Jun 16 3:34 PM
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.